Negative values in Bar series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
RonenL
Newbie
Newbie
Posts: 10
Joined: Wed Jul 04, 2007 12:00 am

Negative values in Bar series

Post by RonenL » Tue Aug 20, 2013 8:41 am

Hello.

I'm using Teechart V3. When I have a bar with negative value the bar is not visible.
see picture:
negative.PNG
negative.PNG (51.7 KiB) Viewed 3703 times
As you can see, the green column has a negative value and it exists in the legend but in the chart it is missing.

Thanks,
Ronen.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Negative values in Bar series

Post by Sandra » Wed Aug 21, 2013 9:19 am

Hello RonenL,

Using last version 3 (3.5.3700.30570) and next code, your problem doesn't appears for me:

Code: Select all

 private Steema.TeeChart.TChart tChart1; 
    public Form1()
    {
      InitializeComponent();
      tChart1 = new Steema.TeeChart.TChart();
  
      this.Controls.Add(tChart1);
      tChart1.Left = 100;
      tChart1.Top = 50;
      tChart1.Dock = DockStyle.Fill; 
      InitialzieChart(); 
    }
    private void InitialzieChart()
    {
      Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
      Steema.TeeChart.Styles.Bar bar2 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
      bar1.Add(0, 500000);
      bar2.Add(0, -500000);
      bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked; 
    }
Could you please tell us which version 3 are you using? If the version isn't the last version 3, please update your version and try again if your problem persists. On the other hand, if your problem still appears using last version 3 please arrange for us a simple code, where the problem appears because we can try to give you a good answer.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply