mark doesn't display when value is 0

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nchoate
Newbie
Newbie
Posts: 1
Joined: Thu Apr 17, 2014 12:00 am

mark doesn't display when value is 0

Post by nchoate » Wed Apr 08, 2015 5:34 pm

When we changed to TeeChart 2014 for .Net from TChart Pro ActiveX we found a small difference. When displaying a bar chart and the value for a particular bar is zero the associated mark doesn't display. It used to display in the ActiveX version.

Due to this being used in legacy code we want the same behavior as the previous TChart version. In other words we want the marks to display even if their values are 0.
The version of TChart we are using is 4.1.2014.2242.

Attached is a simple example in c#. This is a Visual Studio 2013 solution/project.

Run the exe and when the app appears, press "Push Me". You will see a chart with 4 bars with values of 0 through 3, but notice the 0 value is not visible - this is the problem.

Thanks for your help,

Nick
nchoate@symitar.com
Attachments
TChartTestExe.zip
Zip of the exe, just run it to see the problem.
(5.12 KiB) Downloaded 512 times
TChartTest.zip
Entire Visual Studio 2013 solution
(19.93 KiB) Downloaded 502 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: mark doesn't display when value is 0

Post by Christopher » Thu Apr 09, 2015 10:04 am

nchoate wrote:Run the exe and when the app appears, press "Push Me". You will see a chart with 4 bars with values of 0 through 3, but notice the 0 value is not visible - this is the problem.
Yes, please set the SoftClip to false, e.g.

Code: Select all

var series = new HorizBar {BarStyle = BarStyles.Rectangle, Marks = {Style = MarksStyles.Value}};
series.Marks.Arrow.Color = color;
//series.Marks.Clip = false;
series.Marks.SoftClip = false;
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply