SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components


I would like to add labels to contour lines as shown in this previous post.

I have created the heat map with contours, and now I want to programmatically add labels. To this end. I have created a contour series in my view model

        var contourSeries = new FastUniformContourRenderableSeries
            DataSeries = dataSeries,
            ZMin = 0.0,
            ZMax = 50.0,
            ZStep = 4.0

This is the same series as I have already plotted. I have looked through this object, trying to find the plotted contour lines, so I can calculate positions to put labels, but I have not found the data. Can you tell me how to extract the plotted contour curve data?

  • You must to post comments

Hello Stephen,

Thank you for your inquiry. I am sorry for the late reply.
Unfortunately, ContourSeries API doesn’t support drawing contour labels currently. Neither there is a way to obtain contour data from a series.
Could you please specify which data do they need?

You can also create a new feature request and let people vote for it. Here is how to do this:

  • You must to post comments

I was under a deadline to find the answer. Although I tried SciChart first, I ended up using OxyPlot. It provided both a heat map and contour plot with log-log axis, and the contours already had labels. The labels could be configured to have a transparent background. The code is available on Github

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.