Page 1 of 1

The bottom entry in the horizontal bar graph is not showing

Posted: Sat Nov 20, 2010 3:01 pm
by 15057119
I have a bar graph and the last entry is not showing if the value is zero.

Example code
axTChart1.Series(0).Add(1, "AC - Milling & Overlay", 536870912);
axTChart1.Series(0).Add(1, "Cleaning", 536870912);
axTChart1.Series(0).Add(3, "Data Collection", 536870912);
axTChart1.Series(0).Add(0, "Inspect", 536870912);
axTChart1.Axis.Left.Ticks.Visible = false;
axTChart1.Series(0).Marks.Style = TeeChart.EMarkStyle.smsValue;
axTChart1.Series(0).Marks.Font.Color = 1776411;
axTChart1.Series(0).Marks.Clip = false;
axTChart1.Series(0).SortByLabels(TeeChart.EValueListOrder.loDescending);

Inspect is the value that does not show up is it is zero. If I make it any other value is does show up. The other entries always show up even is they are zero. Attached is a visual studio 2010 project showing the problem.

Re: The bottom entry in the horizontal bar graph is not showing

Posted: Mon Nov 22, 2010 2:23 pm
by yeray
Hi Cartegraph,

I've seen that in your chart you've set Left Axis MinimumOffset to 32 and Left Axis MaximumOffset to 37. I've seen that setting the same Minimum and Maximum Offsets, the problem disappears:

Code: Select all

axTChart1.Axis.Left.MaximumOffset = axTChart1.Axis.Left.MinimumOffset;
Could you please confirm it?

Re: The bottom entry in the horizontal bar graph is not showing

Posted: Mon Nov 22, 2010 2:32 pm
by 15057119
That worked! Thanks for the quick reply!

Re: The bottom entry in the horizontal bar graph is not showing

Posted: Mon Nov 22, 2010 3:22 pm
by yeray
Hi Cartegraph,

You're welcome. I'm glad to see you satisfied with it!