Page 1 of 1

Bar Charts Series and Null points

Posted: Tue Feb 05, 2013 11:07 pm
by 9532689
Hi,

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

Thank you

Re: Bar Charts Series and Null points

Posted: Wed Feb 06, 2013 8:23 am
by yeray
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.

Re: Bar Charts Series and Null points

Posted: Wed Feb 06, 2013 3:18 pm
by 9532689
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 12350 times

Re: Bar Charts Series and Null points

Posted: Thu Feb 07, 2013 11:14 am
by yeray
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

Re: Bar Charts Series and Null points

Posted: Thu Feb 07, 2013 1:58 pm
by 9532689
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.

Re: Bar Charts Series and Null points

Posted: Fri Feb 08, 2013 8:25 am
by yeray
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.