gpt4 book ai didi

c# - 麻雀工具包

转载 作者:太空宇宙 更新时间:2023-11-03 13:18:40 27 4
gpt4 key购买 nike

<sparrow:SparrowChart Height="400" Width="400">                
<sparrow:SparrowChart.XAxis>
<sparrow:LinearXAxis/>
</sparrow:SparrowChart.XAxis>
<sparrow:SparrowChart.YAxis>
<sparrow:LinearYAxis/>
</sparrow:SparrowChart.YAxis>
<sparrow:AreaSeries Fill="Red" Stroke="White">
<sparrow:AreaSeries.Points>
<sparrow:DoublePoint Data="0" Value="1"/>
<sparrow:DoublePoint Data="1" Value="2"/>
<sparrow:DoublePoint Data="2" Value="1"/>
<sparrow:DoublePoint Data="3" Value="4"/>
<sparrow:DoublePoint Data="4" Value="0"/>
</sparrow:AreaSeries.Points>
</sparrow:AreaSeries>

enter image description here

如何从 x 轴和 y 轴删除 0.8、1.6... 的平行线?

最佳答案

呵呵,那是我的代码和你从Sparrow Chart得到的图片

要删除填充中的垂直线,只需将描边设置为与填充相同的颜色即可,如下所示。要摆脱网格线,您需要设置一些样式。

<Application.Resources>
<Style TargetType="Line" x:Key="crossLineStyle">
<Setter Property="Stroke" Value="#00000000"/>
<Setter Property="StrokeThickness" Value="1"/>
</Style>
<Style TargetType="Line" x:Key="axisLineStyle">
<Setter Property="Stroke" Value="#00000000"/>
<Setter Property="StrokeThickness" Value="0"/>
</Style>
<Style TargetType="Line" x:Key="minorcrossLineStyle">
<Setter Property="Stroke" Value="#00000000"/>
<Setter Property="StrokeThickness" Value="0.25"/>
</Style>
</Application.Resources>



<sparrow:SparrowChart Height="400" Width="400">
<sparrow:SparrowChart.XAxis>

<sparrow:LinearXAxis CrossLineStyle="{StaticResource crossLineStyle}" MinorLineStyle="{StaticResource minorcrossLineStyle}" MajorLineStyle="{StaticResource crossLineStyle}" AxisLineStyle="{StaticResource axisLineStyle}"/>
</sparrow:SparrowChart.XAxis>
<sparrow:SparrowChart.YAxis>
<sparrow:LinearYAxis CrossLineStyle="{StaticResource crossLineStyle}" MinorLineStyle="{StaticResource minorcrossLineStyle}" MajorLineStyle="{StaticResource crossLineStyle}" AxisLineStyle="{StaticResource axisLineStyle}"/>
</sparrow:SparrowChart.YAxis>
<sparrow:AreaSeries Fill="Red" Stroke="Red">
<sparrow:AreaSeries.Points>
<sparrow:DoublePoint Data="0" Value="1"/>
<sparrow:DoublePoint Data="1" Value="2"/>
<sparrow:DoublePoint Data="2" Value="1"/>
<sparrow:DoublePoint Data="3" Value="4"/>
<sparrow:DoublePoint Data="4" Value="0"/>
</sparrow:AreaSeries.Points>
</sparrow:AreaSeries>
</sparrow:SparrowChart>

enter image description here

关于c# - 麻雀工具包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25136093/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com