Say I've rendered a Plottable.Plots.Bar plot using a dataset that I keep around.
var data = [{ x : 1, y : 1 }, { x : 2, y : 2 }, { x : 3, y : 3 }];
var dataset = new Plottable.Dataset(data);
plot = new Plottable.Plots.Bar()
.addDataset(dataset)
// other stuff ...
.animated(true)
.renderTo('#chart');
The bars animate in, and everything is wonderful. However, when I update some y-values in the dataset:
var newData = [{ x : 1, y : 1 }, { x : 2, y : 3 }, { x : 3, y : 4 }];
dataset.data(newData);
I observe that the chart clears, then the bars animate from the baseline to their new values.
Request:
It'd be great if there were some option to animate bars/lines/whatever directly from the old values to the new values, rather than flushing everything and animating up from the baseline.
// Similar to https://github.com/palantir/plottable/issues/2859
Say I've rendered a
Plottable.Plots.Bar
plot using a dataset that I keep around.The bars animate in, and everything is wonderful. However, when I update some y-values in the dataset:
I observe that the chart clears, then the bars animate from the baseline to their new values.
Request: It'd be great if there were some option to animate bars/lines/whatever directly from the old values to the new values, rather than flushing everything and animating up from the baseline.
Priority: This is a ~P2 for me.