WPF visifire 画出水平直线「建议收藏」

WPF visifire 画出水平直线「建议收藏」  .xaml:<vc:ChartWidth="400"Height="300"BorderThickness="0,1,1,1"><vc:Chart.Legends><vc:LegendVerticalAlignment…

大家好,又见面了,我是你们的朋友全栈君。

 

  .xaml:

<vc:Chart Width="400" Height="300" BorderThickness="0,1,1,1">
                            <vc:Chart.Legends >
                                <vc:Legend VerticalAlignment="Center"  HorizontalAlignment="Right" />
                            </vc:Chart.Legends>
                            <vc:Chart.Series>
                                <vc:DataSeries RenderAs="Pie">
                                    <vc:DataSeries.DataPoints>
                                        <vc:DataPoint Name="pieZC"  LegendText="正常" ShowInLegend="True" AxisXLabel="正常"></vc:DataPoint>
                                        <vc:DataPoint Name="pieJX"  LegendText="畸形" ShowInLegend="True" AxisXLabel="畸形"></vc:DataPoint>
                                        <vc:DataPoint Name="pieSW"  LegendText="死亡" ShowInLegend="True" AxisXLabel="死亡"></vc:DataPoint>
                                    </vc:DataSeries.DataPoints>
                                </vc:DataSeries>
                            </vc:Chart.Series>
                        </vc:Chart>

.cs:

TrendLine tl = new TrendLine();
tl.Value = i; 
tl.LineThickness=0.1;
tl.LineColor = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0)); MyChart.TrendLines.Add(tl);

效果图:

WPF visifire 画出水平直线「建议收藏」

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/162821.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号