Hi,
I have a chart with VerticalLineAnnotation in VerticalSliceModifier,
new VerticalLineAnnotation()
{
XAxisId = XAxis.Id,
YAxisId =YAxis.Id,
LabelPlacement = LabelPlacement.BottomLeft,
ShowLabel =true,
X1 = 0.3,
CoordinateMode = AnnotationCoordinateMode.RelativeX,
IsEditable = true
};
Is there a easy way to set label to show axis value, not the Relative?
By the way VerticalLineAnnotation label can auto fit LabelPlacement? When I drag to edge, the label will be sheltered.
- wei zhao asked 3 months ago
- last edited 3 months ago
-
Hi Wei Zhao, Thanks for your inquiry. I’ll discuss the reported issues with our team and will get back to you with an update. Regarding the sheltered label, could you please provide us with steps to reproduce this in one of our examples from the WPF Examples suite or share a small sample project reproducing this for investigation? Thanks in advance, Lex, SciChart Technical Support Engineer
-
Hi Wei Zhao, Hope you are doing well. Please be informed that have logged the reported issue in our tracking system and our team plans to investigate it as soon as they finish the currently assigned tasks. Kind regards, Lex
-
Hi lex, Thanks for your reply, I am working on other projects, This work will go on next next next month.
- You must login to post comments
Hi Wei Zhao,
I hope this message finds you well.
We’ve investigated the reported issues.
Regarding the Axis Label when the Annotation CoordinateMode is set to RelativeX, this is the expected behavior, however, there is a workaround.
This can be solved by overriding the HandleMasterMouseEvent(Point mousePoint) method of VerticalSliceModifier. It is called on every MouseMove. Inside it, you should update the VerticalLineAnnotation.LabelValue to the correct X-Value. It can be obtained from the SeriesData.SeriesInfo collection, which is available after a call to the base implementation of VerticalSliceModifier.HandleMasterMouseEvent(…).
As for the VerticalLineAnnotation LabelPlacement, it can’t be automatically flipped out of the box.
However, you can set it manually by changing the value of the LabelPlacement property to Left or Right.
The LabelPlacement issue can be also considered as a new feature request or a short consultancy project.
Could you please tell how critical is this issue for your project?
Kind regards,
Lex
- Lex answered 1 month ago
- You must login to post comments
Please login first to submit.