Home forums Using CanvasJS Reprocess labelFormatter after zoom reset

This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 2 months, 1 week ago.

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

    colin
    Member

    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

    Indranil Deo
    Member

    @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.