Kennet, I tried to recreate the code as you described it, but I am not getting any error. See http://jsfiddle.net/dlaliberte/29tefs26/
The unintelligible error message means that an unexpected error occurred, which we try to avoid, of course. So I would like to find out how your code caused that error. Could you either modify the code in my jsfiddle, or create your own that shows the problem? Thanks. On Mon, Jun 15, 2015 at 5:29 AM, Kennet Gliese <[email protected]> wrote: > 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. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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.
