-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Description
Issue: If you make a chart with a line break in the label, the legend renders it as an unknown character
ScottPlot Version: 5.0.25
ScottPlot.Plot myPlot = new();
List<PieSlice> slices = new()
{
new PieSlice() { Value = 5, FillColor = Colors.Red, Label = "Red has long\ntitle here" },
new PieSlice() { Value = 2, FillColor = Colors.Orange, Label = "Orange" },
new PieSlice() { Value = 8, FillColor = Colors.Gold, Label = "Yellow" },
new PieSlice() { Value = 4, FillColor = Colors.Green, Label = "Green" },
new PieSlice() { Value = 8, FillColor = Colors.Blue, Label = "Blue" },
};
var pie = myPlot.Add.Pie(slices);
pie.ExplodeFraction = .1;
myPlot.ShowLegend();
myPlot.SavePng("demo.png", 400, 300);Reactions are currently unavailable
