# How to fix radius of the open flash chart in ruby

**URL:** <https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858>\
**Category:** Rails\
**Created:** [March 3, 2009, 6:28am UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858 "2009-03-03T06:28:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 3, 2009, 6:28am UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858/1 "2009-03-03T06:28:16Z")

</div>

Hello friends,

i m using open flash chart plugin in my rails application to generate  
multiple pie charts. I want pie charts to be of equal size. Does anyone  
know how to set the equal radius for all the charts.

i created one method to set radius in open flash chart plugin and called  
it from my controller. bt it doesnt work…

It simply renders nothing…  
any suggestions are greatly appreaciated…

def pie\_radius(radius)  
@radius = radius  
end

thanks…

---

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 3, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858/2 "2009-03-03T12:38:32Z")

</div>

Hi , Radha

please go threw this URL my you get something you want

[http://pullmonkey.com/2008/7/29/open-flash-chart-ii-pie-chart](http://pullmonkey.com/2008/7/29/open-flash-chart-ii-pie-chart)

---

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 5, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858/3 "2009-03-05T12:54:38Z")

</div>

hello Dhamdip, I hv already visited this url but no specific info found.  
It hs been specified on some sites that we can set radius in  
piechart.json data-file. but m nt getting where to find out this file.

If you have any other solution, plz kindly revert back… as early as  
possible.  
i using ruby on rails.  
Thanks…

Dharmdip R. wrote:

> Hi , Radha
> 
> please go threw this URL my you get something you want
> 
> [PullMonkey Blog » Blog Archive » Open Flash Chart II – Pie Chart](http://pullmonkey.com/2008/7/29/open-flash-chart-ii-pie-chart)

---

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 6, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858/4 "2009-03-06T21:35:50Z")

</div>

Why not just set the size of the chart?  
I am not sure you can set the radius.

H  
[http://harryseldon.thinkosphere.com](http://harryseldon.thinkosphere.com)

Radha L. wrote:

> hello Dhamdip, I hv already visited this url but no specific info found.  
> It hs been specified on some sites that we can set radius in  
> piechart.json data-file. but m nt getting where to find out this file.
> 
> If you have any other solution, plz kindly revert back… as early as  
> possible.  
> i using ruby on rails.  
> Thanks…
> 
> Dharmdip R. wrote:
> 
> > Hi , Radha
> > 
> > please go threw this URL my you get something you want
> > 
> > [PullMonkey Blog » Blog Archive » Open Flash Chart II – Pie Chart](http://pullmonkey.com/2008/7/29/open-flash-chart-ii-pie-chart)

---

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 7, 2009, 5:12am UTC](https://www.ruby-forum.com/t/how-to-fix-radius-of-the-open-flash-chart-in-ruby/161858/5 "2009-03-07T05:12:44Z")

</div>

Hi , Radha

have you used open flash chart1 or open flash chart2 ?

there are different method they cover…
