summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-07-10 14:21:26 -0700
committerJacob Palecki <[email protected]>2021-07-10 14:21:26 -0700
commitafe324470816328db29710b59b7140ab76f49999 (patch)
treedb45bbeaf2a3ee27c4c7e6bba24c47998e416c60
parentFix gain graph legend position (diff)
downloadrawaccel-afe324470816328db29710b59b7140ab76f49999.tar.xz
rawaccel-afe324470816328db29710b59b7140ab76f49999.zip
Fix truncated sensitivity legend
-rw-r--r--grapher/Models/Charts/ChartXY.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs
index 6a34d9b..c74929d 100644
--- a/grapher/Models/Charts/ChartXY.cs
+++ b/grapher/Models/Charts/ChartXY.cs
@@ -173,6 +173,9 @@ namespace grapher
legend.DockedToChartArea = area.Name;
legend.LegendStyle = LegendStyle.Row;
+ legend.IsTextAutoFit = true;
+ legend.MaximumAutoSize = 100;
+ legend.AutoFitMinFontSize = 5;
ElementPosition legendPosNew = DefaultLegendPosition;
legend.Position = legendPosNew;