Closed net3k closed 11 years ago
I found this function that explicitly sets this.currentRegion to undefined. If this line is commented out, the callback behaves as expected.
/**
* Reset any currently highlighted item
*/
clearRegionHighlight: function () {
if (this.currentRegion !== undefined) {
this.removeHighlight();
// this.currentRegion = undefined;
return true;
}
return false;
}
Thing is that I am not sure about side effects.
Got it. Just use: sp.getCurrentRegionFields() to access the current index/offset.
tooltipFormatter: function(sp, options, fields) {}
actual behaviour: sp.currentRegion is always undefined expected behaviour: sp.currentRegion contains the index of the bar that has the tooltip