Skip to content

SP5: Grid needs axis-specific customization of styling #3293

@bjschwarz

Description

@bjschwarz

I see that in SP4 it was possible to adjust the visibility of vertical and horizontal grid lines like this https://scottplot.net/cookbook/4.1/recipes/axis_griddisableone/.

I am not seeing a way to do this in SP5. But I may be missing it.

5.0.20

 ScottPlot.Grids.DefaultGrid grid = BlazorPlot.Plot.GetDefaultGrid();
 grid.MajorLineStyle.Width = 1;
 grid.MajorLineStyle.Color = ScottPlot.Color.FromHex("#a0acb5");
 grid.YAxis.IsVisible = false; 

Pretty sure grid.YAxis controls only the YAxis border.

Fantastic work on this library!

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