Hi, can I freeze an axis’s length/size, so that if the canvas is resized (and therefore the series, too), the axis will keep it’s length/size and not resize together? In other words, freeze the axis/detach it from the series
Thanks
- Tom Alon asked 1 month ago
-
Hi Jim, thanks for the reply. I think the confusion stems from understandable assumptions. Please allow me to clarify myself. So for example, if I enlarge a surface vertically, the canvas stretches and SciChart stretches the Y-Axis and in turn the points on the series are spread further apart vertically to match that, while the labels on the X-Axis keep their original sizes. Of course, I’m stating the obvious here, this what you’d normally expect. Now, we do have multiple axes on a single series, as you described, and just as well some of them hidden. We need one of these axes to be excluded from such resize adjustments, in other words, the axis should be rendered once (with the ensuing positioning of the data points it affects) and following that, not respond to resizes. In other words: Make the axis static, frozen, detached from series, excluded from further resizes. Cheers
- You must login to post comments
Hello, the pixel coordinates of drawn data points from the series are defined by coordinate calculations according to bound axes.
I’m not quite sure I understood your use case.
Especially the axis length/size part.
So, please, elaborate.
However, here is some info I think would be useful:
– you can have multiple X and Y axes on a chart (make sure to set unique IDs on them and bind series/annotations/modifiers to a proper axes)
– some axes could be hidden (check series.isVisible property or constructor option)
– series could be bound to hidden axes (check series.xAxisId and series.yAxisId property or constructor option)
- Jim Risen answered 1 month ago
- You must login to post comments
Hi Jim, thanks for the reply.
I think the confusion stems from understandable assumptions. Please allow me to clarify myself.
So for example, if I enlarge a surface vertically, the canvas stretches and SciChart stretches the Y-Axis and in turn the points on the series are spread further apart vertically to match that, while the labels on the X-Axis keep their original sizes. Of course, I’m stating the obvious here, this what you’d normally expect.
Now, we do have multiple axes on a single series, as you described, and just as well some of them hidden. We need one of these axes to be excluded from such resize adjustments, in other words, the axis should be rendered once (with the ensuing positioning of the data points it affects) and following that, not respond to resizes.
In other words: Make the axis static, frozen, detached from series, excluded from further resizes.
Cheers
- Tom Alon answered 1 month ago
- last edited 1 month ago
- You must login to post comments
Please login first to submit.