Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
LabelSettings not working on Y Axis
posted

We're currently trailing the charts in WPF and we have a problem where the label settings don't work for the Y Axis on any of our charts.

Below is the code for one of our charts, the LabelSettings for the X Axis work, can you tell us what we're doing wrong for the Y Axis?

<ig:XamDataChart Background="Transparent" PlotAreaBackground="Transparent" HorizontalAlignment="Stretch" Height="200">
<ig:XamDataChart.Axes>
<ig:CategoryDateTimeXAxis DateTimeMemberPath="EffectiveFrom" Interval="30" ItemsSource="{Binding Path=Prices}" x:Name="LineXAxis" Label="{}{EffectiveFrom:MMM}" Background="White" Foreground="#777777">
<ig:CategoryDateTimeXAxis.LabelSettings>
<ig:AxisLabelSettings Padding="0,7,0,0"></ig:AxisLabelSettings>
</ig:CategoryDateTimeXAxis.LabelSettings>
</ig:CategoryDateTimeXAxis>
<ig:NumericYAxis x:Name="LineYAxis" Interval="1" Label="{}{}" Background="White" Foreground="#777777" >
<ig:NumericYAxis.LabelSettings>
<ig:AxisLabelSettings Padding="5,0,0,0"></ig:AxisLabelSettings>
</ig:NumericYAxis.LabelSettings>
</ig:NumericYAxis>
</ig:XamDataChart.Axes>
<ig:XamDataChart.Series>
<ig:LineSeries MarkerType="None" ItemsSource="{Binding Path=Prices}" ValueMemberPath="Amount.FormattedPrice" XAxis="{Binding ElementName=LineXAxis}" Brush="{DynamicResource Accent}" Thickness="1"
YAxis="{Binding ElementName=LineYAxis}">
</ig:LineSeries>
</ig:XamDataChart.Series>
</ig:XamDataChart>

Parents Reply Children