I am adding data to my chart like this:
electricStore.notify({ value: 0, id: ++electricCount, site: 1 });
electricStore.notify({ value: Math.random()*5, id: ++electricCount, site: 2 });
electricStore.notify({ value: Math.random()*5, id: ++electricCount, site: 3 });
But every time I do this the scale of the x axis changes so and an extra column is then visible.
How can I make it so that when I add a new column like this, a column off the other end is hidden and the axis scaling does not change?
You should update data yourself like in http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_chart2d_updating.html
Alternatively you can update data using the same ids like in http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_DataSeries.html or in http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_StoreSeries.html