Launch Highcharts zooming programmatically (after a selection)

后端 未结 3 735
星月不相逢
星月不相逢 2020-12-17 05:35

The xAxis of my charts is represented with days (xAxisType=dateTime).

I modify the selection event (zooming) and depend on the amount of days which are selected in t

相关标签:
3条回答
  • 2020-12-17 06:21

    Im guessing you need to programaticaly reset the zoom. This is a better option than enabling the default highcharts zoom reset label. Since that would require an extra redundant step.

    this.zoom()
    

    Thanks.

    0 讨论(0)
  • 2020-12-17 06:25

    To set extremes use:

    this.xAxis[0].setExtremes(min,max);
    this.showResetZoom();
    
    0 讨论(0)
  • 2020-12-17 06:26

    Looks like this.zoom() does not trigger chart.events.selection event.

    In case you need to reset zoom and trigger all events along the way click on "Reset button" programmatically

    $('.highcharts-button').click();
    
    0 讨论(0)
提交回复
热议问题