Skip to content

RadarSeries lacks LineStyle and Fill.IsVisible is not respected #4186

@swharden

Description

@swharden

Fill visibility is not being respected

ScottPlot.Plot myPlot = new();

double[] values = { 5, 4, 5, 2, 3 };
ScottPlot.RadarSeries rs = new(values, ScottPlot.Colors.Blue);
ScottPlot.RadarSeries[] rsArray = [rs];
myPlot.Add.Radar(rsArray);

rs.Fill.IsVisible = false; // I'd expect this to work but it doesn't
rs.Fill.Color = ScottPlot.Colors.Transparent; // this hack works

myPlot.Axes.Frameless();
myPlot.Axes.Margins(0.5, 0.5);
myPlot.ShowLegend();
myPlot.HideGrid();

myPlot.SavePng("demo.png", 400, 300).LaunchInBrowser();
actual output desired output
image image

I'm not sure why because this looks okay at first glance

serie.Fill.ApplyToPaint(paint, rp.FigureRect);
rp.Canvas.DrawPath(path, paint);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions