Is there a simple way to hide the x-Axis of my chart? I would like to disable it using XAML.
This is my current XAML code which displays the X and Y axes. I tried some solutions on stackoverflow but none of them worked for me.
<Charting:Chart x:Name="LineChart" Margin="0,100,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="800" Height="400">
<Charting:LineSeries Name="line_data" Margin="0" IndependentValuePath="Key" DependentValuePath="Value" IsSelectionEnabled="True"/>
</Charting:Chart>
The
x-Axis
actually is theCategoryAxis
in chart. You could redefined the style to delete theCategoryAxis
content. For example:You could find the completed default style of
CategoryAxis
here and change it as what you want.