Pre loader

How can I add labels to contour lines on a Heatmap plot

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

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

https://www.scichart.com/questions/wpf/is-it-possible-to-do-contour-plots

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?

Version
5.4.0.12119
  • You must to post comments
0
0

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
0
0

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:
https://www.youtube.com/watch?v=cWa6bRCCAFE

  • You must to post comments
Showing 2 results
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