Pre loader

Drawing a polygon over a heatmap

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 would like to draw a polygon over a heatMap using an inherited class of UniformHeatMapDataSeries.
An example using FastHeatMapRenderableSeries was described here : https://www.scichart.com/questions/wpf/drawing-a-polygon-upon-a-heatmap-chart ,but it is now deprecated since SciCharts V5.

Instead of that, i tried to declare an inherited class of CustomRenderableSeries as shown here :

public class PolygonRenderableSeries : CustomRenderableSeries {
protected override void Draw(IRenderContext2D renderContext, IRenderPassData renderPassData)
{
base.Draw(renderContext, renderPassData);
}
}

What i need now is to pass a List of Polygons to this class in order to draw them directly. I know how to draw a polygon, but i don’t know how to override the renderPassData for adding polygons to it.

Could you help me about that ?
Best regards,

Version
V5
  • You must to post comments
0
0

Hi Valentin,

Thanks for your inquiry. I am sorry for the late reply.
We have implemented a set of DrawingTools which include BrushAnnotation. Please take a look at the corresponding documentation for more info:
https://www.scichart.com/documentation/v5.x/webframe.html#Freedraw%20(Brush)%20Drawing%20Tool.html

The approach from the link you’ve mentioned (https://www.scichart.com/questions/wpf/drawing-a-polygon-upon-a-heatmap-chart) should work fine too. You just have to change the base class from FastHeatMapRenderableSeries to FastUniformHeatmapRenderableSeries.

You can find more info regarding Heatmap Chart Types here:
https://www.scichart.com/documentation/v5.x/webframe.html#The%20Heatmap%20Type.html

Hope this helps.

With best regards,
Oleksandr

  • Oleksandr Shvets
    As to passing in polygon points, you should not use renderPassData for this. RenderPassData contains data that comes from a DataSeries. Instead, you can pass the polygon points via a property, for instance. With best regards, Oleksandr
  • You must to post comments
Showing 1 result
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