The bottom entry in the horizontal bar graph is not showing

TeeChart for ActiveX, COM and ASP
Post Reply
Cartegraph
Newbie
Newbie
Posts: 11
Joined: Thu Sep 02, 2010 12:00 am

The bottom entry in the horizontal bar graph is not showing

Post by Cartegraph » Sat Nov 20, 2010 3:01 pm

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.
Attachments
NotShowingLastEntryWhenZeroValues.zip
(436.72 KiB) Downloaded 551 times
horz bar graph.jpg
horz bar graph.jpg (28.64 KiB) Viewed 6031 times

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

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

Post by Yeray » Mon Nov 22, 2010 2:23 pm

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?
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

Cartegraph
Newbie
Newbie
Posts: 11
Joined: Thu Sep 02, 2010 12:00 am

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

Post by Cartegraph » Mon Nov 22, 2010 2:32 pm

That worked! Thanks for the quick reply!

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

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

Post by Yeray » Mon Nov 22, 2010 3:22 pm

Hi Cartegraph,

You're welcome. I'm glad to see you satisfied with it!
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