I have made a chart using the chartWrapper and by default i use use this
code:
* NOTE: Data here is just some taken from the chart docs site.
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses', 'Profit'],
['2014', 1000, 400, 200],
['2015', 1170, 460, 250],
['2016', 660, 1120, 300],
['2017', 1030, 540, 350]
]);
var chartType = 'ColumnChart';
var options = { 'title': presentation.title };
var chartWrapper = new google.visualization.ChartWrapper({
chartType: chartType,
dataTable: data,
options: options
});
But i also use the ChartEditor so that the chart can be change if needed,
when the change is done in the chartEditor i save all the options data so
if i do a refresh of the page the chart will stay the same.
But then when the chart is loaded with the options that was saved i get the
error message "a[zc] is not a function" and i have no clue of whats is
wrong.
The options data i'm saving and loading is comming from this code
var chartEditor = new google.visualization.ChartEditor();
google.visualization.events.addListener(chartEditor, 'ok', redrawChartEditor
);
redrawChartEditor = function () {
var chartOptions = chartEditor.getChartWrapper().getOptions();
}
I'll save the data in a database and before i send options to the database
i'll run it throu JSON.stringify() and when i get it back i'll run the
options throu JSON.parse.
I hope that someone can help me with this problem.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.