SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.
Thanks for your question.
The HeatmapColorMap control has an Axis inside, which can be styled via the AxisStyle property:
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:
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.
Please login first to submit.