strokeWidth: 10
}
});
- // NOTE: calling g.setSelection(0) here makes the test fail, due to an
- // unrelated bug.
+ g.setSelection(0);
+ assertEquals("0: Y1: 1 Y2: 1", Util.getLegend());
+
g.setSelection(1);
assertEquals("1: Y1: 1 Y2: 1", Util.getLegend());
this.cascadeEvents_('willDrawChart', e);
this.plotter_.render();
this.cascadeEvents_('didDrawChart', e);
+ this.lastRow_ = -1; // because plugins/legend.js clears the legend
// TODO(danvk): is this a performance bottleneck when panning?
// The interaction canvas should already be empty in that situation.