ScottPlot icon indicating copy to clipboard operation
ScottPlot copied to clipboard

MarkerShapeOverride default fill color

Open aespitia opened this issue 2 months ago • 0 comments

Suggestion: I think the original intent of the MarkerShapeOverride was that the colors were already correct, just wanted to change the shape. Currently, it's defaulting them all to black like this picture:

ScottPlot.Plot myPlot = new();

List<PieSlice> slices = [ new PieSlice() { Value = 5, FillColor = Colors.Red, Label = "Red", LegendText = "R" }, 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", LegendText = "G" }, new PieSlice() { Value = 8, FillColor = Colors.Blue, Label = "Blue", LegendText = "B" }, ];

myPlot.Legend.MarkerShapeOverride = MarkerShape.FilledCircle;

var pie = myPlot.Add.Pie(slices); myPlot.Axes.Frameless(); myPlot.HideGrid(); myPlot.ShowLegend();

Image

aespitia avatar Nov 03 '25 19:11 aespitia