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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.