![]() | 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: | Stacked HorizBar disappear with low BarHeightPercent value | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | chris, nagai |
| Priority: | High | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/directline/viewtopic.php?f=6&t=1029 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Same happens with equivalent Bar series example:
//Steema.TeeChart.Styles.HorizBar[] hbar = new Steema.TeeChart.Styles.HorizBar[20];
Steema.TeeChart.Styles.Bar[] hbar = new Steema.TeeChart.Styles.Bar[20];
for (int i = 0; i < 20; i++)
{
//hbar[i] = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);
hbar[i] = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
hbar[i].MultiBar = Steema.TeeChart.Styles.MultiBars.SelfStack;
//hbar[i].BarHeightPercent = 5;
hbar[i].BarWidthPercent = 5;
hbar[i].Marks.Visible = false;
for (int j = 0; j < 3; j++)
{
Color cl = (j == 1) ? Color.Green : Color.Red;
hbar[i].Add(1, cl);
}
}
|
Using the code below with stack horizontal bars, scrolling the chart down series disappear. The problem is with BarHeightPercent property. Setting it to its default value works fine. Steema.TeeChart.Styles.HorizBar[] hbar = new Steema.TeeChart.Styles.HorizBar[20]; for (int i = 0; i < 20; i++) { hbar[i] = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart); hbar[i].MultiBar = Steema.TeeChart.Styles.MultiBars.SelfStack; hbar[i].BarHeightPercent = 5; hbar[i].Marks.Visible = false; for (int j = 0; j < 3; j++) { Color cl = (j == 1) ? Color.Green : Color.Red; hbar[i].Add(1, cl); } }