diff --git a/MaterialChartPlugin/MaterialChartPlugin.cs b/MaterialChartPlugin/MaterialChartPlugin.cs
index 43b55c9..11cd91b 100644
--- a/MaterialChartPlugin/MaterialChartPlugin.cs
+++ b/MaterialChartPlugin/MaterialChartPlugin.cs
@@ -15,7 +15,7 @@ namespace MaterialChartPlugin
[ExportMetadata("Guid", "56B66906-608A-4BCC-9FE2-6B3B0093F377")]
[ExportMetadata("Title", "MaterialChart")]
[ExportMetadata("Description", "資材の推移をグラフで表示します。")]
- [ExportMetadata("Version", "1.1.0")]
+ [ExportMetadata("Version", "1.1.1")]
[ExportMetadata("Author", "@terry_u16")]
[Export(typeof(ITool))]
[Export(typeof(IRequestNotify))]
diff --git a/MaterialChartPlugin/ViewModels/ToolViewModel.cs b/MaterialChartPlugin/ViewModels/ToolViewModel.cs
index 82dcab2..d5498d7 100644
--- a/MaterialChartPlugin/ViewModels/ToolViewModel.cs
+++ b/MaterialChartPlugin/ViewModels/ToolViewModel.cs
@@ -383,9 +383,9 @@ private void SetXAxis(TimeMaterialsPair newData)
/// 最も多い資材の量
private void SetMaterialYAxis(int mostMaterial)
{
- this.mostMaterial = mostMaterial;
- var interval = ChartUtilities.GetInterval(0, mostMaterial);
- YMax1 = ChartUtilities.GetYAxisMax(mostMaterial, interval);
+ this.mostMaterial = Math.Max(mostMaterial, 100);
+ var interval = ChartUtilities.GetInterval(0, this.mostMaterial);
+ YMax1 = ChartUtilities.GetYAxisMax(this.mostMaterial, interval);
}
///
@@ -394,9 +394,9 @@ private void SetMaterialYAxis(int mostMaterial)
/// 最も多い高速修復材の量
private void SetRepairToolYAxis(int mostRepairTool)
{
- this.mostRepairTool = RepairTool;
- var interval = ChartUtilities.GetInterval(0, mostRepairTool);
- YMax2 = ChartUtilities.GetYAxisMax(mostRepairTool, interval);
+ this.mostRepairTool = Math.Max(mostRepairTool, 10);
+ var interval = ChartUtilities.GetInterval(0, this.mostRepairTool);
+ YMax2 = ChartUtilities.GetYAxisMax(this.mostRepairTool, interval);
}
public async void ExportAsCsv()