http://wikipedlla.com/trouble_displaying_a_polar_chart
> First, thanks for this nice interface to a great tool, and thanks for
> restarting your web server just now.
> I've looked at the example page for Polar charts at
http://ziya.liquidrail.com/tutor
> now but I'm still having problems displaying a polar chart. The top of
> the chart is being cut off and although the associated yml file for
> this chart is being loaded, the chart_rect x and y values seem to have
> no effect.
> I have pasted the relevant code in here
http://pastie.caboo.se/146454
> just in case it gets formatted weird below.
> Also here is an screenshot of the generated web page. No matter what I
> change the x and y to in the yml, the chart never moves (However the x
> and y values do affect the legend_rect placement, and width/height
> work for chart_rect):
http://akuaku.org/~dav/images/misc/polar_chart.png
> In controller:
> def show_bpi_chart
> graph = Ziya::Charts::Polar.new( nil, "BPI Overview",
> "bpi_overview_chart")
> graph.add( :axis_category_text, poles.keys.map {|game_category|
>
game_category.name} )
> graph.add( :series, "BPI Across All Cognitive Training Areas",
> poles.values )
> render :xml => graph.to_xml
> end
> In bpi_overview_chart.yml:
> <%=chart :polar%>
> # Change chart rectangle
> <%=component :chart_rect%>
> negative_color: c0b15c
> positive_color: f0811c
> negative_alpha: 30
> X: 0
> Y: 0
> height: 200
> width: 600
> <%=component :legend_rect %>
> x: 0
> y: 280
> width: 600
> <%=component :chart_border %>
> bottom_thickness: 0
> left_thickness: 0
> In rhtml:
> <%= ziya_chart( url_for(:action => 'show_bpi_chart'), :align =>
> 'center', :height => 300, :width => 600 ) %>