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 2573

Summary: Lines of TeeChart.Server Area series not painting at the top of the series
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: .NET 5.0Assignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Image seven

Description christopher ireland 2022-11-29 07:11:37 EST
Created attachment 1024 [details]
Image seven

Code to reproduce:

            var mChart = new TChart();
            mChart.Aspect.View3D = false;

            mChart.Header.Visible = false;
            mChart.Legend.Visible = false;

            mChart.Axes.Left.AutomaticMinimum = false;
            mChart.Axes.Left.Minimum = 0;
            mChart.Axes.Left.AutomaticMaximum = false;
            mChart.Axes.Left.Maximum = 100;

            mChart.Axes.Bottom.AutomaticMinimum = false;
            mChart.Axes.Bottom.Minimum = 0;
            mChart.Axes.Bottom.AutomaticMaximum = false;
            mChart.Axes.Bottom.Minimum = 100;

            int i = 7;

            Area area = new Area(mChart.Chart);
            area.Stairs = true;

            area.AreaLines.Visible = true;
            area.AreaLines.Color = System.Drawing.Color.Red;
            area.AreaLines.Width = 2;

            area.Add(0, 60);
            area.Add(20, 40);
            area.Add(40, 60);
            area.Add(80, 40);
            area.Add(100, 60);

            mChart.Series.Add(area);

            //No top edge line of area stairs series:

            mChart.Export.Image.PNG.Width = 800;
            mChart.Export.Image.PNG.Height = 400;
            mChart.Export.Image.PNG.Save($"C:\\TeeChartTest\\chart_{i++:d2}.png");

Image attached.