Pre loader

Freeze axis length/Don't resize axis with series

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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

Version
latest
  • Tom Alon
    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 to post comments
0
0

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)

  • You must to post comments
0
0

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 to post comments
Showing 2 results
Your Answer

Please first to submit.