var axes = out[0];
var seriesToAxisMap = out[1];
this.displayedYRange_ = axes[0].valueRange;
- // TODO(danvk): remove yAxis, yTicks
- this.layout_.updateOptions( { yAxis: axes[0].valueRange,
- yTicks: axes[0].ticks,
- yAxes: axes,
+ this.layout_.updateOptions( { yAxes: axes,
seriesToAxisMap: seriesToAxisMap
- } );
+ } );
this.addXTicks_();
/**
* Determine all y-axes.
- * Inputs: mapping from seriesName -> [low, high] for that series,
- * (implicit) per-series axis attributes.
* Returns [ axes, seriesToAxisMap ]
- * axes = [ { valueRange: [low, high], otherOptions: ..., ticks: [...] } ]
+ * axes = [ { options } ]
* seriesToAxisMap = { seriesName: 0, seriesName2: 1, ... }
* indices are into the axes array.
*/
Dygraph.update(this.renderOptions_, attrs);
this.labelsFromCSV_ = (this.attr_("labels") == null);
+ this.computeYaxes_();
// TODO(danvk): this doesn't match the constructor logic
this.layout_.updateOptions({ 'errorBars': this.attr_("errorBars") });