这是我的图表的xaml代码:
<oxy:Plot HorizontalAlignment="Left" Height="222" Margin="0,49,0" VerticalAlignment="Top" Width="870" Background="Transparent" PlotAreaBorderColor="White" LegendBorder="Transparent" Name="viewCountPlot" Title="Videos Watched" TextColor="White" IsLegendVisible="False" IsManipulationEnabled="False" IsMouseWheelEnabled="False"> <oxy:Plot.Axes> <oxy:DateTimeAxis Name="datetimeAxis" Position="Bottom" MajorGridlineColor="#40FFFFFF" TicklineColor="White" StringFormat="M/d/yy" IntervalType="Days" ShowMinorTicks="False"/> </oxy:Plot.Axes> <oxy:Plot.Series> <oxy:Lineseries Name="viewCountSeries" Title="Videos Viewed" datafieldX="Date" datafieldY="Value" Color="#CCFA6800" strokeThickness="2" TrackerFormatString="Date: {2:M/d/yy}
Value: {4}" ItemsSource="{Binding PlotItems}" Markerstroke="#FFFDFDFD" /> </oxy:Plot.Series> <oxy:Plot.DefaultTrackerTemplate> <ControlTemplate> <Canvas> <Grid Canvas.Left="{Binding Position.X}" Canvas.Top="{Binding Position.Y}"> <Ellipse Fill="White" Width="12" Height="12" HorizontalAlignment="Left" VerticalAlignment="Top"> <Ellipse.RenderTransform> <TranslateTransform X="-6" Y="-6" /> </Ellipse.RenderTransform> </Ellipse> <TextBlock Foreground="{DynamicResource OrangeTextColor}" Text="{Binding}" Margin="-60 -40 0 0" /> </Grid> </Canvas> </ControlTemplate> </oxy:Plot.DefaultTrackerTemplate> </oxy:Plot>
在情节系列中有没有办法将情节点显示为圆形或某种性质的东西?
这是我的意思的示例图像,每个绘图点都有一个与之关联的小圆:
解决方法
原文地址:https://www.jb51.cc/csharp/94603.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。