简体   繁体   English

高库存数据点像素间距

[英]Highstock data points pixel spacing

Is there a way to set point spacing in pixels on x/y axis for highstock? 有没有办法在高库存的x / y轴上以像素为单位设置点间距? For example data points should be 5px apart. 例如,数据点应相隔5px。

Also is there way to shift chart left or right? 还有办法向左或向右移动图表吗? For example shift all data points 5px right or left? 例如,将所有数据点向右或向左移动5px?

The spacing between points can be control by 点之间的间距可以通过

If you want the points of a line to be a certain distance apart, you need to make sure that the width of the plot area, divided by the number of points , equals that pixel value. 如果希望线的点相隔一定距离,则需要确保绘图区域的宽度除以点数等于该像素值。

(or divided by the number of axis units, if you are artificially setting a min and max beyond the range of the data) (如果您是人为地将最小值和最大值设置为超出数据范围,则将其除以轴单位数)

There can't possibly be a property to account for this - it's all about the space available and the number of points. 不可能有一个属性来说明这一点-它全部与可用空间和点数有关。

As for shifting left or right, it depends exactly what you mean. 至于向左或向右移动,这完全取决于您的意思。 If you're looking to add spacing to the left or right end of the x axis, you can use midPadding or maxPadding . 如果要在x轴的左端或右端添加间距,则可以使用midPaddingmaxPadding

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM