gpt4 book ai didi

javascript - Highcharts 中的 x 点错误

转载 作者:行者123 更新时间:2023-12-03 10:05:09 26 4
gpt4 key购买 nike

我需要使用相同的放置点和 x 轴标签来渲染图形。
如果最短日期与一周的开始相匹配 - 一切正常(图1),否则点和 x 轴标签不同(图 2)

Sample

最佳答案

您可以使用tickPositioner更改默认刻度,演示:http://jsfiddle.net/v0eyt5eL/2/

tickPositioner: function(min,max) {
return this.series[0].processedXData.slice(); // get copy of the series x-positions
},

关于javascript - Highcharts 中的 x 点错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30392240/

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