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



I’m looking to use the runtime editable lineannotation, I’ve set everything up and I can drag the line around with no problems. But, I couldn’t find a way to constraint the lineannotations’s movement, for example I only want the line annotation to be editable on the Y axis while the X values should be constant. Is there a way to do this? The HorizontalLineAnnotation seems to have this constraint but Horizontal and Vertical Line annotations always starts at zero, which is not what I’m going for.


  • You must to post comments
Best Answer

Hi Kewur,

Thanks for the question. Annotations have the ResizeDirections property, which is used to constraint resize direction to only one coordinate. So if you set it either to XDirection or YDirection, you should get the desired behavior.

Hope it helps,

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.