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

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.