Livecharts not displaying Label on x axis in WPF

后端 未结 1 1636
清歌不尽
清歌不尽 2021-01-24 05:05

I am displaying data in my livecharts and Label values are binded (visible in debugging). But somehow in the UI, it is showing one or two values instead of all the values in str

相关标签:
1条回答
  • 2021-01-24 05:18

    Define an AxisSeparator for your axis like this, and set its Step property to 1

    <lvc:CartesianChart.AxisX>
        <lvc:AxesCollection>
            <lvc:Axis Labels="{Binding Labels}">
                <lvc:Axis.Separator>
                    <lvc:Separator Step="1" />
                </lvc:Axis.Separator>
            </lvc:Axis>
        </lvc:AxesCollection>
    </lvc:CartesianChart.AxisX>
    
    0 讨论(0)
提交回复
热议问题