SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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,
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
Please login first to submit.