Pre loader

Drawing a polygon over a heatmap


I would like to draw a polygon over a heatMap using an inherited class of UniformHeatMapDataSeries.
An example using FastHeatMapRenderableSeries was described here : ,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,

  • You must to post comments

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:

The approach from the link you’ve mentioned ( 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:

Hope this helps.

With best regards,

  • 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