minValue
This commit is contained in:
parent
8e24939f9a
commit
d015401272
@ -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>
|
||||
|
||||
@ -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()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user