Added a 'beforeUpdate' dispatch event to the discreteBarChart

master-patched
Ricardo 12 years ago
parent bfd98d8a08
commit db9778e7d5

11142
nv.d3.js

File diff suppressed because it is too large Load Diff

5
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -23,7 +23,7 @@ nv.models.discreteBarChart = function() {
, x
, y
, noData = "No Data Available."
, dispatch = d3.dispatch('tooltipShow', 'tooltipHide')
, dispatch = d3.dispatch('tooltipShow', 'tooltipHide', 'beforeUpdate')
;
xAxis
@ -68,7 +68,7 @@ nv.models.discreteBarChart = function() {
- margin.top - margin.bottom;
chart.update = function() { selection.transition().call(chart); };
chart.update = function() { dispatch.beforeUpdate(); selection.transition().call(chart); };
chart.container = this;

Loading…
Cancel
Save