Commit fecae39c authored by 潘栩锋's avatar 潘栩锋 🚴

添加 风环增量图强制Y轴 Step 为整个范围的 1/10

parent 60d3f222
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
LabelFormatter="{Binding YFormatter}" LabelFormatter="{Binding YFormatter}"
MinValue="{Binding OffsetGraphYMin}" MaxValue="{Binding OffsetGraphYMax}" FontFamily="Courier New" > MinValue="{Binding OffsetGraphYMin}" MaxValue="{Binding OffsetGraphYMax}" FontFamily="Courier New" >
<lvc:Axis.Separator> <lvc:Axis.Separator>
<lvc:Separator Stroke="{StaticResource Brushes.AxisSeparator}" Step="10"/> <lvc:Separator Stroke="{StaticResource Brushes.AxisSeparator}" Step="{Binding OffsetGraphStep}"/>
</lvc:Axis.Separator> </lvc:Axis.Separator>
</lvc:Axis> </lvc:Axis>
</lvc:CartesianChart.AxisY> </lvc:CartesianChart.AxisY>
......
...@@ -26,9 +26,10 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule ...@@ -26,9 +26,10 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule
public Func<double, string> YFormatter { get; private set; } public Func<double, string> YFormatter { get; private set; }
public int XMax { get; protected set; } public int XMax { get; protected set; }
public double OffsetGraphYMax { get; protected set; } = 50; public int OffsetGraphYMax { get; protected set; } = 50;
public double OffsetGraphYMin { get; protected set; } = -50; public int OffsetGraphYMin { get; protected set; } = -50;
public int OffsetGraphStep { get; protected set; } = 10;
/// <summary> /// <summary>
/// Y轴倍数 /// Y轴倍数
/// </summary> /// </summary>
...@@ -229,8 +230,11 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule ...@@ -229,8 +230,11 @@ namespace FLY.FeedbackRenZiJia.UI.Client.UiModule
if (range < 10) if (range < 10)
range = 10; range = 10;
OffsetGraphStep = range / 5;
OffsetGraphYMax = range; OffsetGraphYMax = range;
OffsetGraphYMin = -range; OffsetGraphYMin = -range;
} }
private void MHeatCell_PropertyChanged(object sender, PropertyChangedEventArgs e) private void MHeatCell_PropertyChanged(object sender, PropertyChangedEventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment