问题描述
我需要在页面上输出图表,并且我正在考虑 Highstock 或Highcharts实施此操作。由于浏览器窗格显示重新缩放后的绘图的其余部分,Highstock界面更为可取。
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 pane showing the rest of plot after rezooming.
然而我的情节有x-asis的数字,但不是日期/时间。有什么办法可以使用Highstock和数字x-scale?或添加类似的导航到Highcharts?
However my plot has numbers in x-asis, but not date/time. Is there any way to use Highstock with numerical x-scale? Or add similar navigator to Highcharts?
推荐答案
Highstock的唯一类型xAxis是日期时间,所以用数字不是一个选项。 (也许如果你做了一些棘手的格式化操作,并定义了一个自定义的工具提示,它可以使用相同的格式化选项)
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).
只留下Highcharts并且有一个名为的示例,可以满足您的要求。
Leaves only Highcharts and there is an example called master-detail chart that could meet your requirements.
希望有所帮助。
这篇关于在x轴上用数字代替日期的Highstock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!