遇到一个livecharts使用的问题,就是我设置他的时候他会出现一个错误
LiveChartsException: One axis has an invalid range, it is or it tends to zero, please ensure your axis has a valid range
就是这样的报错
下面我附上我的设置
希望大家能帮助解决一下
<lvc:CartesianChart Series="{Binding LineSeriesCollection}" LegendLocation="Left" Margin="0,50,0,0" >
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding Labels}" >
<lvc:Axis.Separator>
<lvc:Separator Step="1" />
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis LabelFormatter="{Binding CustomFormatterY}" MaxValue="{Binding AxisYMax}" MinValue="{Binding AxisYMin}">
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>