Pre loader

Adding interval to legend of heat map

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’m trying to add more intervals into the legend of the Heat map. So far it only displays 10, 8, 6, 4, 2, 0, but I would like to edit it to display the numbers 0-10. From what I understand, the TickProvider API only works with an X or Y axis so I’m not sure if there’s a way to add the function.

Version
5.4.0.12103
Images
  • You must to post comments
0
0

Hi Elaine,

Thanks for your question.
The HeatmapColorMap control has an Axis inside, which can be styled via the AxisStyle property:
https://www.scichart.com/documentation/v5.x/webframe.html#SciChart.Charting~SciChart.Charting.Visuals.HeatmapColorMap~AxisStyle.html

So almost everything in our documentation concerning Axes can be applied to this internal axis. For instance, here is how you can change ticks and their frequency:
https://www.scichart.com/documentation/v5.x/webframe.html#Axis%20Ticks%20-%20MajorDelta,%20MinorDelta%20and%20AutoTicks.html
https://www.scichart.com/documentation/v5.x/webframe.html#Axis%20Ticks%20-%20TickProvider%20and%20DeltaCalculator%20API.html

Default AxisStyle looks like this:

<Style TargetType="axes:AxisBase">
    <Setter Property="DrawMajorBands" Value="False" />
    <Setter Property="DrawMajorGridLines" Value="False" />
    <Setter Property="DrawMinorTicks" Value="True" />
    <Setter Property="DrawMajorTicks" Value="True" />
    <Setter Property="AutoRange" Value="Never" />
    <Setter Property="MaxAutoTicks" Value="5" />
</Style>

Please try these suggestions.

  • 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