Pre loader

VerticalLineAnnotation label to show real value when CoordinateMode = AnnotationCoordinateMode.RelativeX

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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.

Version
8.5.0.28148
Images
  • Lex
    • Lex
    • 2 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
  • Lex
    • Lex
    • 2 months ago
    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
  • wei zhao
    Hi lex, Thanks for your reply, I am working on other projects, This work will go on next next next month.
  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.