Bar Charts Series and Null points

TeeChart for ActiveX, COM and ASP
Post Reply
Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Bar Charts Series and Null points

Post by Rousseau » Tue Feb 05, 2013 11:07 pm

Hi,

Is there a way, in a bar charts series, to not display the null points (not empty spaces)?

Thank you

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bar Charts Series and Null points

Post by Yeray » Wed Feb 06, 2013 8:23 am

Hi Rousseau,

Setting a value to be a null point only changes its color to transparent. The other points aren't reordered when you set a point as null.
Note when you add a point with only YValue, the XValue is internally created.
If you want the value to completely disappear, I'd just remove it and reorder the points manually.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Re: Bar Charts Series and Null points

Post by Rousseau » Wed Feb 06, 2013 3:18 pm

Hi,

Thank you for your quick answer. I did not know that I could use the method AddXY() on Bar chart series. I always use Add() and AddNull().

I tried to use AddXY() but, it the same thing. I don't know if it is possible, but I would like to do not display empty spaces if i dont have data?
teechart.JPG
teechart.JPG (35.44 KiB) Viewed 12275 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bar Charts Series and Null points

Post by Yeray » Thu Feb 07, 2013 11:14 am

Hi,

I think you are trying to do something similar to this customer. It's a Java thread but the same should apply here.
http://www.teechart.net/support/viewtop ... 10&t=13073
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Re: Bar Charts Series and Null points

Post by Rousseau » Thu Feb 07, 2013 1:58 pm

Hi,

Yes, it is similar. I do not want add an AxisBreak but, I would like change the position in the series. I know how get the x position with CalcXPos CalcXPosValue and CalcXSizeValue, but how set the new position?

Thank your for your help.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Bar Charts Series and Null points

Post by Yeray » Fri Feb 08, 2013 8:25 am

Hi Rousseau,
Rousseau wrote:I would like change the position in the series. I know how get the x position with CalcXPos CalcXPosValue and CalcXSizeValue, but how set the new position?
The only way is to change the XValue of the point.

However, in your case maybe you could just have 10 dummy series for the legend. These are series without points but the appropriate color and title for the legend.
And then a unique Bar series with all the points, so all the values in it will be one next to the other. Of course all these values will have their own color. And this series could have ShowInLegend = false.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply