简体   繁体   中英

Highstock data points pixel spacing

Is there a way to set point spacing in pixels on x/y axis for highstock? For example data points should be 5px apart.

Also is there way to shift chart left or right? For example shift all data points 5px right or left?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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