SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

I would like to add an image or icon to the bottom of the Vertical Line Annotation, where the AnnotationLabel is.

Is there a way to do this using the StyleKey?

I have a lot of Vertical Line Annotations and I am trying to make some of them look different other than just color. I need ways to show different vertical line annotations and this could be one of them.

Version
5
  • You must to post comments
0
0

Hy Ryan,

Thanks for your inquiry.
You can declare AnnotationLabels in XAML inside a Style, then apply the style via a StyleKey to an Annotation. To put an image into an AnnotationLabel, you should provide a custom Template for it holding this image. Please find an example of an AnnotationLabel template in the “Templating the VerticalLineAnnotation
” section of the following documentation:
https://www.scichart.com/documentation/v5.x/webframe.html#The%20VerticalLineAnnotation%20Type.html

Hope this helps,

With best regards,
Oleksandr

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.