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 2448 - Area series draws line between first/last points
Summary: Area series draws line between first/last points
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-09 15:30 EDT by Brian Kohrs
Modified: 2021-07-19 11:07 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-09 15:30:03 EDT
When executing as a console application, area series draw a line between their first/last point. If you run the same code in a WinForms application, the line is not drawn.

Here is some sample code to reproduce it:

            var chart = new TChart();
            var series1 = new Area();
            series1.Add(1, 2);
            series1.Add(2, 3);
            series1.Add(3, 6);
            var series2 = new Area();
            series2.Add(1, 1);
            series2.Add(2, 2);
            series2.Add(3, 5);
            chart.Series.Add(series1);
            chart.Series.Add(series2);
            chart.Export.Image.PNG.Width = 800;
            chart.Export.Image.PNG.Height = 600;
            chart.Export.Image.PNG.Save(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "chart.png"));

This repository also has projects that demonstrate the issue.

https://github.com/jhabkohrs/TeeChartAreaLine