events = [];
g.updateOptions({series: {Y1: {color: 'blue'}}});
assertEquals([
- "clearChart",
"predraw",
- "clearChart", // why is clearChart called twice?
+ "clearChart",
"willDrawChart",
"didDrawChart"
], events);
assertEquals([
"dataWillUpdate",
"dataDidUpdate",
- "clearChart",
"predraw",
- "clearChart", // why is clearChart called twice?
+ "clearChart",
"willDrawChart",
"didDrawChart"
], events);