Pre loader

Trying to display an annotation labels on a collapsed axis.

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

Answered
0
0

It seems that if the axis is collapsed, all associated annotation labels are not visible (but their annotation line is visible).
Is there property or the like that will allow labels to be shown which are associated with a collapsed axis?

Version
4.2.3.10185
  • Riley Huddleston
    Note: I do have a work around which is to use opacity and align it opposite of the visible axes. Then with DrawGridLines, DrawLabels, … etc I get the visual effect that I need. I just wanted to be sure there wasn’t a more elegant way to do this (by allowing the label to show up even when the axis is collapsed).
  • You must to post comments
Great Answer
0
0

Hi Riley

I haven’t tried it, but you can try setting Axis.Visibility = Visibility.Hidden. This will hide the axis but will preserve its size. Try then setting the width to zero or a small number.

When collapsed, any sub-views on the axis are also collapsed, that’s a WPF limitation I’m afraid.

Best regards,
Andrew

  • Riley Huddleston
    Oh I see. I didn’t realize that the annotations where actually children of the axis. I figured they were on a canvas apart from the axis.
  • Riley Huddleston
    Hidden wouldn’t work for our scenario as the axis can’t mis-align other (vertically stacked) axes. Simple enough to put the axis on an unused side.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies