SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
i wanna use vertical line annotation in box annotation that only one edge moves to drag like using ‘chart drag area to zoom’
I checked about custom annotation and there’s features said ‘common features of annotations’ but they don’t have any features l’m looking for
i put pictures for understanding.
there are box annotation on a graph and I want to move line to drag and box is going to smaller or larger
and i also want the other edge is fixed, it can not be dragged
do you guys have any tips for me?
Hi there,
Have you tried to combine box and 2 vertical line annotations, but make editable only vertical lines and drag only vertical lines? In this case you can set drag listener for vertical line and update position of box annotation based on position of vertical line ( set X1/X2 coords for box annotation to be equal to X1 coordinate of vertical line ). Also to provide effect of stretching box annotation vertically you can set relative coordinate mode in Y direction, then set Y1 = 0 and Y2 = 1 for annotation.
Is this suitable for your needs?
Best regards,
Yura