Highstock with numbers instead of date in x-axis

后端 未结 3 484
闹比i
闹比i 2021-01-05 06:28

I need to output a plot on page, and I\'m considering Highstock or Highcharts to implement this. Highstock interface is more preferable due to navigator pan

相关标签:
3条回答
  • 2021-01-05 06:43

    Below X Axis formatter can be used with high Stock for displaying numbers in X-Axis:

    xAxis: {labels: {   formatter: function () {return this.value;}} }
    
    0 讨论(0)
  • 2021-01-05 06:45

    Highstock's only type of xAxis is datetime, so using it with numbers is not an option. (Maybe if you make some tricky formatting actions and define a custom tooltip with the same formatting options it might be possible).

    Leaves only Highcharts and there is an example called master-detail chart that could meet your requirements.

    Hope that helps.

    0 讨论(0)
  • 2021-01-05 07:02
    xAxis: {
        type: 'linear' // Other types are "logarithmic", "datetime" and "category"
    }, 
    
    0 讨论(0)
提交回复
热议问题