gpt4 book ai didi

highcharts - 从 rangeSelector 获取日期输入框的值

转载 作者:行者123 更新时间:2023-12-03 16:44:14 25 4
gpt4 key购买 nike

是否可以从 rangeSelector 获取日期输入框的值?

最佳答案

var chart = new Highcharts.StockChart(chartingOptions);
...
var zoomStartEpochTime = chart.rangeSelector.leftBox.HCTime;
var zoomEndEpochTime = chart.rangeSelector.rightBox.HCTime;

或者,您可以 query the xAxis's extreme values对于相同的
var zoomStartEpochTime = chart.xAxis[0].getExtremes().min;
var zoomEndEpochTime = chart.xAxis[0].getExtremes().max;

关于highcharts - 从 rangeSelector 获取日期输入框的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12269678/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com