Pre loader

Are polygons supported?

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’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 am considering applying server-side licensing for my javerScript application.

In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support-dev.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)

However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)

I wonder if there is a sample code implemented in C++ for server-side licensing.

Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies