This commit is contained in:
老九 2021-10-30 16:26:32 +08:00
parent 8e24939f9a
commit d015401272
2 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,10 @@
<Grid>
<lvc:CartesianChart Name="flowChart" Series="{Binding Series}" LegendLocation="None" >
<lvc:CartesianChart.AxisY>
<lvc:Axis Title="速率(KB/s)" LabelFormatter="{Binding YFormatter}"></lvc:Axis>
<lvc:Axis Foreground="#222" MinValue="0" LabelFormatter="{Binding YFormatter}"></lvc:Axis>
</lvc:CartesianChart.AxisY>
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding Labels}"></lvc:Axis>
<lvc:Axis Foreground="#222" Labels="{Binding Labels}"></lvc:Axis>
</lvc:CartesianChart.AxisX>
</lvc:CartesianChart>
</Grid>

View File

@ -31,7 +31,7 @@ namespace FastGithub.UI
public List<string> Labels { get; } = new List<string>();
public Func<double, string> YFormatter { get; } = value => $"{value:0.00}";
public Func<double, string> YFormatter { get; } = value => $"{value:0.00}KB/s";
public FlowChart()
{