Pre loader

Heatmap not rendering with CategoryDateTime axis

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

Hello,
I currently have a heatmap with float values on the Y axis and timestamps on the X axis, which renders fine. My timestamps are not equally spaced, so I changed it to a CategoryDateTime axis thinking that it would present all the columns with equal spacing. Instead, no heatmap gets rendered. The X and Y labels do show up, however. I’m not getting an error and don’t see anything that stands out in my output window. Is it just a matter of the categorical axis not supported by the heatmap, or can there be an error getting thrown silently somewhere?

Version
4.2.2.9777
  • You must to post comments
0
0

Hi Karl

The heat map spacing is provided by the function passed to the constructor of Heatmap2DArrayDataSeries:

  double[,] data;
  Func<int, int> xFunction = (ix) => { return ix };
  Func<int, int> yFunction = (iy) => { return iy };
  var heatmapSeries = new Heatmap2DArrayDataSeries<int, int, double>(data, xFunction, yFunction);

Using this function if you specify a sequential index (e.g. just return ix) then your X-Spacing for the heat map should be uniform.

Best regards,
Andrew

  • 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