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
- Alessio Diana asked 7 years ago
- You must login to post comments
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:
Please let me know if this helps,
Best regards,
Andrew
- Andrew Burnett-Thompson answered 7 years ago
- You must login to post comments
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.
- Alessio Diana answered 7 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 7 years ago
- You must login to post comments
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?
- Alessio Diana answered 7 years ago
- You must login to post comments
Please login first to submit.