We have a number of charts, all with continuous X-axes. Currently we're looking into making these charts editable using the ChartEditor class.
The editor works, but there are a few issues.
First our most relevant concern: Our continuous x-axis is read from the first column of a DataTable. This results in incorrect output upon opening the ChartEditor, it handles the first data-column just the same as any other data-column: as a column of data-values to plot on the y-axis.
To work around this, we have to check the option "Use 1st column as labels" each time that we open the chart editor. Is there a way to have that set by default?
I couldn't find anything in the API documentation pointing in that direction.
Secondly, after editing and pressing OK, the charts resize to a much smaller size than what we started on.
I managed to work around that problem by storing the chart wrapper dimensions (width & height) in a variable and then re-applying those values again when handling the 'ok' event of the ChartEditor, with these lines:
chartEditor.getChartWrapper().setOptions({width: 900, height: 700});
chartEditor.getChartWrapper().draw();
That doesn't look like that's how it's supposed to work. Am I missing something?
Regards,
Alban.