Home forums Using CanvasJS Reprocess labelFormatter after zoom reset

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17263

    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

    #17268

    @elcollie,

    Changing the valueFormatString on resetting will work fine. Please take a look at this jsfiddle.

    ___________
    Indranil Deo,
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.