-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
Issue: If you try to open the resulting SVG XML, it's invalid because it's missing a "g" tag somewhere, so it will not validate because of the unclosed tag.
ScottPlot Version: 5.0.36
Code Sample:
ScottPlot.Plot myPlot = new();
List<PieSlice> slices = new()
{
new PieSlice() { Value = 31.6, FillColor = Colors.Red, Label = "Category 1 - 31.6%" },
new PieSlice() { Value = 27.2, FillColor = Colors.Orange, Label = "Category 2 - 27.2%" },
new PieSlice() { Value = 16.2, FillColor = Colors.Gold, Label = "Category 3 - 16.2%" },
new PieSlice() { Value = 1.4, FillColor = Colors.Green, Label = "Category 4 - 1.4%" },
new PieSlice() { Value = 3.7, FillColor = Colors.Blue, Label = "Category 5 - 3.7%" },
new PieSlice() { Value = 14.8, FillColor = Colors.AliceBlue, Label = "Category 6 - 31.6%" },
new PieSlice() { Value = 3.3, FillColor = Colors.Aqua, Label = "Category 7 - 3.3%" },
new PieSlice() { Value = 1.4, FillColor = Colors.Beige, Label = "Category 8 - 1.4%" },
new PieSlice() { Value = 99.6, FillColor = Colors.BlueViolet, Label = "Category 9 - 99.6%" },
};
var pie = myPlot.Add.Pie(slices);
myPlot.Font.Set("Arial");
pie.DonutFraction=.6;
pie.Padding = 0;
myPlot.Legend.FontSize = 10.666667f;
myPlot.HideGrid();
myPlot.Layout.Frameless();
myPlot.ShowLegend(Edge.Right);
myPlot.SaveSvg(@"c:\temp\pietest.svg",500,375);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
