-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
I'm extending a chart:
d3.chart('BarChart').extend('AccountingBarChart', {
initialize: function() {
// this.dataLabels is a mixin
this.dataLabels.layer('labels').on('enter', function() {
this.text('$' + this.text());
});
}
});then rendering it multiple times
setInterval(function() {
barData.forEach(function(d) {
d.value = d.value + 1;
});
barChart.draw(barData);
}, 2000);The second time the chart gets rendered, it triggers the enter event and tries to execute the above code, even though there's no entering data. Any ideas?
Metadata
Metadata
Assignees
Labels
No labels