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 1261 - Stacked HorizBar disappear with low BarHeightPercent value
Summary: Stacked HorizBar disappear with low BarHeightPercent value
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/directline/vi...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 04:58 EDT by narcís calvet
Modified: 2015-07-31 11:26 EDT (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 narcís calvet 2015-07-31 04:58:23 EDT
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);
        }
      }
Comment 1 narcís calvet 2015-07-31 05:16:15 EDT
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);
        }
      }