[ 3 posts ]

dusjj

  • Username: dusjj
  • Joined: Wed May 30, 2012 12:23 am
  • Posts: 7
  • Offline
  • Profile

Any way to set the pie chart position in the render-div?

Post Posted: Wed May 30, 2012 12:57 am
+0-
first, I'm sorry for my poor english.

Anyone could pls give me some clue, is it possible to set the pie chart image position(ie. left, center or right) in the chart's render-div?
I checked the .render() function but not found the params.

Thanks for your reply.

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Any way to set the pie chart position in the render-div?

Post Posted: Wed May 30, 2012 7:33 pm
+0-
There is no functionality that you describe. By default, the chart will fill the entire div. If the div's width/height are different, the pie will adjust its size to remain a circle. If you need to set the position of the chart within a div, I would suggest wrapping the render div in an outer div and positionining the render div within the outer div.

Thanks,
Tripp

dusjj

  • Username: dusjj
  • Joined: Wed May 30, 2012 12:23 am
  • Posts: 7
  • Offline
  • Profile

Re: Any way to set the pie chart position in the render-div?

Post Posted: Wed May 30, 2012 11:10 pm
+0-
Thank you Tripp.
I will use your suggestion creating a inner div to position the chart.

Thanks.
Dusjj.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum