From afe324470816328db29710b59b7140ab76f49999 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Sat, 10 Jul 2021 14:21:26 -0700 Subject: Fix truncated sensitivity legend --- grapher/Models/Charts/ChartXY.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grapher/Models') 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; -- cgit v1.2.3