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
mark doesn't display when value is 0
mark doesn't display when value is 0
- 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
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: mark doesn't display when value is 0
Yes, please set the SoftClip to false, e.g.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.
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 |