Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2450

Summary: Axis grid ignores style
Product: .NET TeeChart Reporter: Brian Kohrs <bkohrs>
Component: .NET 5.0Assignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Brian Kohrs 2021-07-12 12:47:31 EDT
Axis grid is drawn as solid lines regardless of what the style is set to.

Using a .NET 5 console application with the latest Steema.TeeChart.NET NuGet package (4.2021.6.23), the following code will demonstrate the issue. Regardless of what chart.Axes.Left.Grid.Style is set to, the axis grid lines will always be solid.

            var chart = new TChart();
            var area = new Area();
            area.Add(1, 2);
            area.Add(2, 3);
            area.Add(3, 6);
            chart.Series.Add(area);
            chart.Axes.Left.Grid.Style = DashStyle.Dash;
            chart.Export.Image.PNG.Width = 800;
            chart.Export.Image.PNG.Height = 600;
            chart.Export.Image.PNG.Save(@"test.png");