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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

Hi,

I’m in need to draw polygons around series, so they must scale correctly when zooming and support transparency.
So far I am unable to find a native and simple way to do it, can anybody help me?

Thank you so much

Version
4.2.2
  • You must to post comments
0
0

Hi Alessio

The simplest way to draw a polygon on the chart is to use Annotations. These support transparency, they scale correctly when zooming and panning. If you want to add a Custom Annotation to a chart, please see this documentation here:

The CustomAnnotationType

enter image description here

Please let me know if this helps,

Best regards,
Andrew

  • You must to post comments
0
0

The problem is that if I use an annotation the coordinates are different from the one of the serie, on top of that, I need to place the annotation in such a way that it aligns exactly over the serie. It would be much better if I could draw directly on the chart surface as the normal series do.

  • You must to post comments
0
0

Hi Alessio,

Annotation Coordinates should be exactly the same as the DataSeries coordinates so long as the annotation is on the same Axis as the series.

However, if your preference is to draw using the same API as RenderableSeries then please see our documentation article The Immediate Mode RenderContext API.

This supports FillPolygon and you can draw polygons outlines with DrawLine.

Have a look at our CustomRenderableSeries API. It is possible to override one of our series, or create your own, to draw polygons on top of, or under chart series.

Note that when using the RenderContext, all drawing is done in screen coordinates. It is possible to convert form Data to Screen coordinates (so that polygons scale with series) by following the examples in the CustomRenderableSeries API page.

Best regards,
Andrew

  • You must to post comments
0
0

I was looking exactly at that right now 🙂

Thank you

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.