Search the Community
Showing results for tags 'ajax'.
Found 2 results
-
Multi-series PHP chart working, Cannot get format correct to use ajax to refresh
P.A.Trick posted a topic in FusionCharts and PHP
I have a multi-series stacked column chart working with php. The chart gets the data from my localhost database, does a complicated query to perform some mathematics to the data, populates another table, then uses the new table data to render a fusionchart. All of this works if I run the php as a stand alone in my browser by just rendering the chart in the php file. Now I want to wrap this with ajax to make the chart live as the data updates without the need to hit the refresh button in the web browser. There is a tutorial in fusioncharts for an ajax app, but it is for a simple chart, not a stacked chart. I cannot seem to get the "echo $jsonEncodedData" in my php file to render a chart in the ajax app. I know I am completely missing something in the app. app-lightchart_data-testing.js utilization_data.php lightchart_data-testing.php lightchart_data-testing.html- 9 replies
-
- multi-series chart
- ajax
-
(and 1 more)
Tagged with:
-
Hi, I am using fusion charts XT javascript charts. Consider the following situation - I have created Pie Chart and I have facility to edit that chart and select different chart types. While I switch between different chart types, It works perfectly as I want, but while ajax call is fetching the data, it shows the error "Chart type not supported with fusion charts logo below it". Following is the code I user to switch between the charts - var chartObject1 = FusionCharts("fu-chart-<?php echo $model->id ?>"); //if chart is already created, then dispose it if(chartObject1 != null) chartObject1.dispose(); //create the chart dynamically with chart type chartType var myChart = new FusionCharts( chartType, "fu-chart-<?php echo $model->id ?>", "100%", "100%"); var chartDataUrl = "path/to/url"; myChart.setXMLUrl(chartDataUrl); myChart.render("chartdiv-<?php echo $canvasItem->id ?>");
- 1 reply
-
- ajax
- chart type not supported
-
(and 1 more)
Tagged with: