Page 1 of 1

Bar Chart Auto Size Issues

Posted: Sat Jul 23, 2016 4:11 am
by 16077780
how can I make gaps between 2 bars, without sticking to each other as attached.

Re: Bar Chart Auto Size Issues

Posted: Tue Jul 26, 2016 7:57 am
by Christopher
Hello,

You can use BarWidthPercent, as in this short example:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
      bar1.Add(3, 10);
      bar1.Add(3.5, 10);

      bar1.BarWidthPercent = 50;
    }