Pre loader

Point marker rotation

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

Is it possible use SciChart to rotate the point markers on chart by a z value? I’d like to produce a chart similar to the attached wind chart sample from the weather underground website.

Images
  • You must to post comments
0
0

Hi there,

As PointMarkers are not UIElements (they are drawn to the chart using bitmap drawing technology), there is no way to apply a RenderTransform to them to rotate them.

However, you can achieve this in one of two ways:

  1. You could use our Annotations feature instead to display a marker, and apply RenderTransform, or LayoutTransform to the annotation. You should note that annotations will not have the same performance as our PointMarkers API.

  2. You could override BasePointMarker.Draw() and draw whatever you like there. The RenderContext passed in has some methods to draw outline shapes. You would unfortunately have to handle the maths to rotate the points on the shape, but theoretically it is possible.

I hope I’ve given you some ideas how to achieve this, and if you do, do please share a code sample as it may benefit other users!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.