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 1842 - Series.Transparency will change to 100 when null values are added.
Summary: Series.Transparency will change to 100 when null values are added.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart for .Net 4.1.2016.05125
Hardware: PC Windows
: High critical
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 07:02 EDT by Sunil Ramesh
Modified: 2018-01-26 08:22 EST (History)
2 users (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 Sunil Ramesh 2017-04-17 07:02:54 EDT
TeeChart v4.1.2017.03140

For most of the chart types Donut, Pie and others, adding null value will reset the transparency to 100.

         Donut donut = new Donut();
         tChart1.Series.Add(donut);
         donut.Add(2d);
         donut.Add(3d);
         //check the transparency value, it will be 0;
         MessageBox.Show(donut.Transparency.ToString());

         //add nullable
         donut.Add(new double?());
         //check the transparency value, it will be 0;
         MessageBox.Show(donut.Transparency.ToString());
         //check the transparency value again, it will be now 100;
         MessageBox.Show(donut.Transparency.ToString());

Also, when some properties under wall/aspect is changed, it will reset the series.Transparency to 100, making the series invisible.
Comment 1 Sunil Ramesh 2017-09-01 01:29:26 EDT
This issue is still reproducible, it is actually about the Transparency property returning 0 when called first time and 100 when called second time. The same happens to many chart types and elements that have Transparency property.

Run the below snippet and see the value of the 2nd message box.

         Donut donut = new Donut();
         tChart1.Series.Add(donut);
         donut.Add(2d);
         donut.Add(3d);
         donut.Add(new double?());        //add null

         //check the transparency value, first time, it will be 0
         MessageBox.Show(string.Format("Transparency is correct: {0}", donut.Transparency));

         //check the transparency value again, it will be now 100
         MessageBox.Show(string.Format("Transparency is wrong: {0}", donut.Transparency));
Comment 2 Sunil Ramesh 2017-09-01 01:38:04 EDT
(In reply to Sunil Ramesh from comment #0)
> TeeChart v4.1.2017.03140
> 
> For most of the chart types Donut, Pie and others, adding null value will
> reset the transparency to 100.
> 
>          Donut donut = new Donut();
>          tChart1.Series.Add(donut);
>          donut.Add(2d);
>          donut.Add(3d);
>          //check the transparency value, it will be 0;
>          MessageBox.Show(donut.Transparency.ToString());
> 
>          //add nullable
>          donut.Add(new double?());
>          //check the transparency value, it will be 0;
>          MessageBox.Show(donut.Transparency.ToString());
>          //check the transparency value again, it will be now 100;
>          MessageBox.Show(donut.Transparency.ToString());
> 
> Also, when some properties under wall/aspect is changed, it will reset the
> series.Transparency to 100, making the series invisible.
Comment 3 sandra pazos 2018-01-26 08:22:06 EST
Hello Sunil,

The problem you're experiencing is fixed for latest TeeChartFor.net 4.1.2017.10190

Thanks in advance