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


I have an HorizontalLineAnnotation. Normaly you can see one AnnotationLabel for the YAxis. How can i get my HorizontalLineAnnotation to show one AnnotationLabel on each YAxis. If i add or remove one YAxis then the lable must be added or removed. This is the same behaivour as the CursorModifier.

  • You must to post comments

Hi Bochelie,

It’s not currently possible to do this in SciChart. However I recommend this as a workaround:

  • Why not create N HorizontalLineAnnotations (one per axis by setting YAxisId) and bind Y1 on all of them to the same ViewModel property with a TwoWay Binding?

That way when you move one HorizontalLineAnnotation they will all move.

If that looks bad (because of overlaid lines). You could also hide the line on all but one HorizontalLineAnnotation by setting the Stroke to {x:Null} or Transparent.

Best regards,

  • bochelie
    Hi Andrew, I dont realy understand to wich property i should bind Y1 to. Can you give me a bit more clarification? By the way i need to do this in code behind because i dont know how many YAxis the user will add.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.