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 95 - Area Series doesn't plot with gradient and 10000 points
Summary: Area Series doesn't plot with gradient and 10000 points
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart.NET 2013 4.1.2013.11080
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-12 11:27 EST by marc meumann
Modified: 2013-11-14 07:05 EST (History)
1 user (show)

See Also:
Chart Series: Area
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 marc meumann 2013-11-12 11:27:29 EST
The problem is quite specific to a certain Area Series setup. The problem doesn't occur with low point volumes but shows up at (tried) 10,000 points.

The following code (see comments in code) reproduce the problem when applied to a clean chart:

There are two lines just before the population loop that cause unexpected results.
===========================
        public Form1()
        {
            InitializeComponent();
 
            Area area1 = new Area(tChart1.Chart);
 
            tChart1.Aspect.View3D = false;
 
            //set a gradient colour and make the gradient visible
            area1.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
            area1.Gradient.Visible = true;
 
            //*******Now try commenting/uncommenting these lines one at a time
 
            //*******this line enables/diables area gradient
            //area1.AreaLines.Visible = false;
 
            //*******this line makes rendering transparent when enabled
            //area1.GradientRelative = false;
 
            double v = 0.0;
            Random r = new Random();
 
            for (int i = 0; i < 10000; i++)
            {
                v += r.NextDouble();
                area1.Add(i, v);
            }
        }
 
===========================