![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Series.Transparency will change to 100 when null values are added. | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | Sunil Ramesh <sunil.ramesh> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | chris, sandra |
| Priority: | High | ||
| Version: | TeeChart for .Net 4.1.2016.05125 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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));
(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. Hello Sunil, The problem you're experiencing is fixed for latest TeeChartFor.net 4.1.2017.10190 Thanks in advance |
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.