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


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?

  • 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

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,

  • 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.