Then when draw the chart after the data in the series you get script error when the chart draws the labels.
To recreate the problem, just add the line
Code: Select all
Chart1.draw()
Code: Select all
series.data.x=[];
this happen because the Chart1.axes.bottom.increm become Infinite in the draw of the chart with empty series,
then when draw the bottom label you get the script error.