You must be logged in to post your query.
Home › Forums › Chart Support › Reprocess labelFormatter after zoom reset
Hi,
I currently use axisX.labelFormatter: function(e){….} to custom format date/time labels (depending on the duration being displayed and timezones) on the axisX. Its works nicely even when zooming using rangeChanging. The problem is that when I trigger a chart reset and ‘zoom’ back the labelFormatter function does get called again and labels are presented in whatever format they were in before reset was triggered. Is it possible that when a chart reset is triggered, that the labelFormatter custom function is called again in the context of the currently displayed data?
Cheers
@elcollie,
Changing the valueFormatString on resetting will work fine. Please take a look at this jsfiddle.
___________ Indranil Deo, Team CanvasJS
You must be logged in to reply to this topic. Login/Register