Pre loader

Is this customization of the vertical line annotation on a vertical slice modifier possible?

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

The default appearance for the vertical line annotation is for the series name and Y value to be displayed next to the data point. Is it possible to move this display elsewhere? On sine wave type data it doesn’t work so good because the text box moves up and down so much as the user scrolls the line annotation. Even just putting it at the bottom of the chart right above the X axis would be a huge improvement.

I assume this is a ControlTemplate modification type issue but I don’t know where to start looking.

  • You must to post comments
0
0

Hi David, Kristjan,

Thanks for your questions. Actually, there are several possible positions reserved for annotation labels, additionally they can be shifted changing label’s Margin. You can see this in the Annotation Are Easy example, notice that vertical/horizontal lines there have additional labels above/aside of them. To achieve this, you should define labels inside the annotation in this way:

             <s:VerticalLineAnnotation ShowLabel="False" ... >
                  <!-- Defines the label at the top left corner -->
                  <s:AnnotationLabel LabelPlacement="TopRight" Text="..."/>
                     ....
                   <!-- Defines the label at the bottom just above the XAxis -->
                 <s:AnnotationLabel LabelPlacement="Bottom" Text="..."/>
            </s:VerticalLineAnnotation>

So the LabelPlacement property determines position of a label (+ Margin to shift). And to disable the default label, just set ShowLabel=”False” on an annotation.

Hope it is clearer now! Please feel free to comment if you have any questions,

Best regards,
Yuriy

  • You must to post comments
Showing 2 results
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