Page 1 of 1

mark doesn't display when value is 0

Posted: Wed Apr 08, 2015 5:34 pm
by 15668964
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

Re: mark doesn't display when value is 0

Posted: Thu Apr 09, 2015 10:04 am
by Christopher
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;