Page 1 of 1
Negative values in Bar series
Posted: Tue Aug 20, 2013 8:41 am
by 13046001
Hello.
I'm using Teechart V3. When I have a bar with negative value the bar is not visible.
see picture:
- negative.PNG (51.7 KiB) Viewed 3728 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.
Re: Negative values in Bar series
Posted: Wed Aug 21, 2013 9:19 am
by 10050769
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,