I want to load chart data with a local data.
<sjc:chart
id="chartPlaceHolder"
cssStyle="width: 600px; height: 400px;"
pie="true"
pieLabel="true"
dataType="local"
/>
Then I used (as mentioned in Refresh/Reload Flot In Javascript)
//This data is created dynamically from a grid when grid completed
var chartData= [
{ label: "Chrome", data: 36.3, color: "#89A54E"},
{ label: "Other", data: 0.8, color: "#3D96AE"}
];
var plot = $.plot($('#chartPlaceHolder'));
plot.setData(chartData);
plot.setupGrid();
plot.draw();
I get some jquery exception aB is undefined in jquery APIs
Any comments ?!
You are missing two additional parameters to
$.plot().You should read the basic usage.
EDIT:
You can try below code. It's reloading the chart with data after the chart was created without data.