Hi there:
I am developing an application where the main chart is a heat map type one. I would like to have a custom cursor modifier to show some values of the x, y and z axes with limit digits. The problem is that so far I get these result:
EDIT: PLEASE INSERT AN IMAGE HERE
I would like to show only 1 decimal in the Z axis and 0 decimals en the X and Y axis. I have checked your modifiers demo but it seems to be not working for my heatmap chart. Any kind of advice about this issue would help me to have the application I am looking for.
The XAML of my chart is like this:
<s:SciChartSurface x:Name="sciChart" Grid.Column="1" Grid.Row="3" Padding="0" BorderThickness="0" MouseDown="SciChart_MouseDown" Margin="0">
<s:SciChartSurface.RenderableSeries>
<s:FastUniformHeatmapRenderableSeries x:Name="heatmapSeries"
Opacity="0.9"/>
</s:SciChartSurface.RenderableSeries>
<s:SciChartSurface.XAxis>
<s:NumericAxis DrawMajorBands="True"
DrawLabels="False"
TextFormatting="0N"
GrowBy="0, 1"
s:RolloverModifier.AxisLabelContainerStyle="{StaticResource AxisLabelStyle}"
s:RolloverModifier.AxisLabelTemplate="{StaticResource AxisLabelTemplate}"
s:CursorModifier.AxisLabelContainerStyle="{StaticResource CursorAxisLabelStyle}"/>
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxis>
<s:NumericAxis DrawMajorBands="True"
GrowBy="0, 1"
DrawLabels="False"
VisibleRange="0,249"
TextFormatting="0"/>
</s:SciChartSurface.YAxis>
<s:SciChartSurface.ChartModifier>
<s:ModifierGroup>
<s:RolloverModifier x:Name="RolloverModifier"
IsEnabled="True"
ShowTooltipOn="Always" />
<!--<s:CursorModifier IsEnabled="True" ShowTooltip="True" ShowTooltipOn="MouseOver"
ShowAxisLabels="true" SourceMode="AllSeries"/>-->
<s:CursorModifier x:Name="CursorModifier"
IsEnabled="False"
UseInterpolation="False"
ShowAxisLabels="False"
ShowTooltip="True"
ShowTooltipOn="MouseOver"/>
<!--<s:VerticalSliceModifier IsEnabled="True">
<s:VerticalSliceModifier.VerticalLines>
<s:VerticalLineAnnotation IsEditable="false"
LabelPlacement="Axis"
ShowLabel="true"
LabelTextFormatting="0"/>
</s:VerticalSliceModifier.VerticalLines>
</s:VerticalSliceModifier>-->
</s:ModifierGroup>
</s:SciChartSurface.ChartModifier>
</s:SciChartSurface>
Thanks in advanced.
- Javier MartÃnez Gutiérrez asked 5 years ago
- last edited 5 years ago
- You must login to post comments
Hi Javier,
Thanks for your question.
You can set TextFormatting for Modifiers on the Heatmap Chart by creating Custom Tooltip Template. You can set there both the appearance and TextFormatting.
Please have a look at our Custom Tooltips with Modifiers example:
https://www.scichart.com/example/wpf-chart-example-custom-tooltips-with-modifiers/
And our documentation regarding CursorModifier:
https://www.scichart.com/documentation/v5.x/webframe.html#CursorModifier.html
Best regards,
Oleksandr Shvets
SciChart Technical Support Engineer
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Please login first to submit.