Home forums Using CanvasJS Question regarding interval calculation

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  jerrygarciuh 1 month, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15402

    jerrygarciuh
    Member

    I was reading https://canvasjs.com/docs/charts/chart-options/zoomenabled/

    And in the comment on March 21, 2016 at 2:16 I found question “Is it possible to change the intervalType on zoom level?”

    Support had replied with example http://jsfiddle.net/canvasjs/8e98Lej8/

    I tried using this example to set custom formats and after some frustration I made copy of fiddle example where each of support’s interval calculations result in an alert: http://jsfiddle.net/8e98Lej8/1/

    While e.trigger is found to be set to Zoom none of the conditions is ever true when zooming.

    Am I failing to get this or is the example no longer valid?

    Thank you!

    #15409

    Vishwas R
    Keymaster

    @jerrygarciuh,

    Because of multiple X / Y axis support, all axis parameters in events like rangeChanging / rangeChanged have been changed to array from object (Since v1.8.5), refer this release-post for more info. Changing e.axisX to e.axisX[0] should work fine in your case. Please check this updated jsfiddle.

    We had missed out updating this jsfiddle. Thanks for bringing it to our notice, we have updated the jsfiddle accordingly.


    Vishwas.R

    #15416

    jerrygarciuh
    Member

    Thank you so much! Y’all are fantastic!

    #15421

    jerrygarciuh
    Member

    Found one more example that needs same array index fix. Here is the updated, working version http://jsfiddle.net/mydmun2x/8/

    BTW- client bought license so will post under their user if anything else comes up.

    Thanks!

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

You must be logged in to reply to this topic.