I have the same problem. Did you find out how to do it?
W dniu środa, 23 maja 2012 16:48:17 UTC+2 użytkownik golo napisał:
> Hi guys,
> I want to use the sdInteractiveChartPlugin with ajax to display charts
> based on different data tables when one click on icons. each icon represent
> different data tables.
> What i've tried, as
> http://www.symfony-project.org/plugins/sdInteractiveChartPlugin, is to
> put the following code in a partial:
> use_helper('sdInteractiveChart');
> $chart = InteractiveChart::newBarChart();
> $chart->setWidthAndHeight('500', '320');
> $chart->setDataColors(array('#990000', '#cd0000'));
> $chart->setBaselineColor('#aaa');
> $chart->setLegendPosition(LineGraph::$LEGEND_NONE);
> $chart->ajaxGraph( url_for('graphs/load_data'), array(), 'chart_div');
> $chart->render();
> and load this partial via ajax (jquery) with the .load function.
> I haven't achieved to display the chart. Does anyone know how to do this?
> any help would be appreciated..
> thanks..
> golo