Page 5 of 5

Re: X asix labels not lining up properly

Posted: Thu Sep 16, 2010 1:00 pm
by yeray
Hi UserLS,

Yes, this is the same.
UserLS wrote:bring your chart editor and just change the bottom axis increment to your predefined option "One Year"
This can be done also by code with:

Code: Select all

_testChart.Axes.Bottom.Increment = Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneYear);
With you code, and setting the Increment to "OneYerar" I get this:
Chart1.png
Chart1.png (38.43 KiB) Viewed 29788 times
And after adding the following line:

Code: Select all

_testChart.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.PointValue;
I get this:
Chart2.png
Chart2.png (38.2 KiB) Viewed 29791 times

Re: X asix labels not lining up properly

Posted: Thu Oct 07, 2010 12:40 am
by 15654268
Hi there,
I just noticed a new release
Release Notes 28th September 2010
TeeChart.NET version 2010
Build 4.1.2010.09283
Compiled in .NET Framework 4.0
Build 4.1.2010.09282
Compiled for Visual Studio 2008
Build 4.1.2010.09281
Compiled in .NET Framework 2.0
Build 4.1.2010.09280
Compiled in .NET Framework 1.0
does this include the PointValue axis option, it isn't listed in the change log?

Adrian.

Re: X asix labels not lining up properly

Posted: Thu Oct 07, 2010 7:38 am
by yeray
Hi Captell,

I can see in the release notes:
New Features
--------------------------
1) [TF02015095]
New AxisLabelStyle.PointValue which shows
the XValue point value directly under
the points of a series.

Re: X asix labels not lining up properly

Posted: Thu Oct 07, 2010 7:41 am
by 15654268
thanks for that, I just missed the new features section when I looked this morning.

I'll be downloading and testing over the weekend.

thanks again.

Re: X asix labels not lining up properly

Posted: Sun Oct 10, 2010 8:01 pm
by 15654268
I have downloaded and tested the new build 4.1.2010.9280 and for the most part it corrects the problem with labels not aligning correctly with bars by using the new feature PointValue as an Asis Label Style.

However, if the series of data to be plotted is missing some periods the labels aren't shown on the chart, instead a gap is shown, see the following chart where there is no data for April. This chart uses the PointValue axis label style.
11-10-2010 06-49-30.png
11-10-2010 06-49-30.png (7.07 KiB) Viewed 29735 times
Compared with this chart using the Auto axis label style.
11-10-2010 06-51-55.png
11-10-2010 06-51-55.png (7.53 KiB) Viewed 29738 times
Both charts have axis increment set to one month and in all other aspects are identical.

Is it possible to have the PointValue axis label style show the missing data label?

Re: X asix labels not lining up properly

Posted: Mon Oct 11, 2010 8:50 am
by yeray
Hi Captell,

The PointValue AxisLabelStyle draws the label *only* where there is a point. This style doesn't cares about Increment and IncrementOffset (neither Mark or Text AxisLabelStyle).
Alternatively, if you want to draw labels in a constant separation (regardless of points positions) you have to use Increment and IncrementOffset (with Value AxisLabelStyle).