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 - Axis grid ignores style
Summary: Axis grid ignores style
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-12 12:47 EDT by Brian Kohrs
Modified: 2021-07-19 12:13 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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");