LiveCharts数据点标签重叠

问题描述

是否可以设置数据标签样式以阻止它们重叠? 在中间,两个数据点重叠,在最后一个数据点(190)隐藏在列后面。

这就是我正在使用的:

            <Label Name="GraphTitleLabel" Padding="0" Content="Plot Name Details" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold" />
            <lvc:CartesianChart Name="chart" Grid.Row="1" Grid.Column="0" Series="{Binding seriesCollection}" LegendLocation="Bottom" Background="WhiteSmoke" BorderBrush="Black" BorderThickness="0.5" Padding="0"
                            Zoom="None" Pan="X" MouseDoubleClick="chartResetZoom_MouseDoubleClick" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" >
            <lvc:CartesianChart.DataTooltip>
                <lvc:DefaultTooltip SelectionMode="OnlySender" />
            </lvc:CartesianChart.DataTooltip>
            <lvc:CartesianChart.ChartLegend>
                <lvc:DefaultLegend BulletSize="9" FontSize="12" Typography.Capitals="AllSmallCaps" />
            </lvc:CartesianChart.ChartLegend>
            <lvc:CartesianChart.AxisX >
                <lvc:Axis Name="XAxis" Title="" Labels="{Binding Labels}"  LabelsRotation="0" Foreground="Black" >
                    <lvc:Axis.Separator>
                        <lvc:Separator Name="LabelSeparator"></lvc:Separator>
                    </lvc:Axis.Separator>
                </lvc:Axis>
            </lvc:CartesianChart.AxisX>
            <lvc:CartesianChart.AxisY >
                    <lvc:Axis Foreground="DarkBlue" Title="Title 1" FontSize="12">
                    <lvc:Axis.Separator>
                        <lvc:Separator Name="Oneseparator"></lvc:Separator>
                    </lvc:Axis.Separator>
                </lvc:Axis>
                <lvc:Axis Name="Y2AxisName" Foreground="DarkRed" Title="Axis Two"            Position="LeftBottom" FontSize="12">
                    <lvc:Axis.Separator>
                        <lvc:Separator Style="{StaticResource CleanSeparator}"></lvc:Separator>
                    </lvc:Axis.Separator>

                </lvc:Axis>
                    <lvc:Axis  Name="Y3AxisName"   Foreground="DarkGoldenrod" Title="Length" Position="RightTop" FontSize="12"/>
            </lvc:CartesianChart.AxisY>

        </lvc:CartesianChart>

enter image description here

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...