Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 939 Bytes
// Including FusionCharts library files
<script src="fusioncharts.js"></script>
// Example of how to draw a chart using FusionCharts and PHP.
// fusioncharts.php functions to help us easily embed the charts.
// Create the chart - Column 2D Chart with data given in constructor parameter
// Syntax for the constructor - new FusionCharts("type of chart", "unique chart id", "width of chart", "height of chart", "div id to render the chart", "type of data", "actual data")
$columnChart = new FusionCharts("Column2D", "myFirstChart" , 780, 400, "chart-1", "jsonurl", "data.json");
// Render the chart
<div id="chart-1"><!-- FusionCharts will render here--></div>