PDA

View Full Version : Axes on dynamic Chart dont refresh



zenrast
10 Mar 2014, 1:32 PM
Hi,

im creating a dynamic Chart.
I dynamically add series, axes and empty and refill the store.
On new user action I "empty" the old "data" from above and fill the Cart with in the new data.
The expected result would be a chart with the new axes and series.

However, the Cart series are OK, but the old "axes" are not removed.

Here is some code and the picture with results:
.
.
var graphLineChart = this.getLineChart();
var graphDataStore = graphLineChart.store;
graphDataStore.removeAll('true');

graphLineChart.axes.clear();
graphLineChart.series.clear();
.
.
here i add the new data(axes, series) to graphLineChart
.
.
graphLineChart.redraw();

Why are the old "axes" not removed?

Gary Schlosberg
27 Mar 2014, 11:51 AM
Sounds like a bug. Can you post a Fiddle which reproduces the issue?
https://fiddle.sencha.com/#home