Search found 65 matches

by Captell
Thu Oct 07, 2010 12:40 am
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

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 Framew...
by Captell
Tue Sep 14, 2010 8:15 am
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

This looks good, I'm looking forward to having a "play", when will the new build be available?
by Captell
Wed Sep 08, 2010 12:45 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Thanks for this, It's at least a workaround I can tell my users about. Essentially it seems that if the bottom axis Style is set to "Mark" and the series "Marks" style is set to "X value" then the bottom labels correctly align with the bars. It does mean that the user cant use the marks though but I...
by Captell
Mon Aug 16, 2010 10:05 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Thanks for your reply Yeray, I'll give this a try When formatting the labels the margins aren't calculated internally so you'll have to calculate them manually. I've made a quite generic example to calculate the margins: I think I'm pretty much at the end of this process now, if I can't get it to la...
by Captell
Sat Aug 14, 2010 6:04 am
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

I just tried something from your statement I can see the same behaviour we described with Line series. Adding the points with datetime and without labels, the labels aren't aligned: The following code correctly aligns the labels, the dates are added to the chart as DOUBLE, all chart properties funct...
by Captell
Sat Aug 14, 2010 5:32 am
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Ok I can almost get this to work with the following but I'm stuck with how do I set the panel margin and label styles? The line e.Series.Chart.Panel.MarginBottom = 15 needs to be set dynamicly but how do I work out the length of the label? I can't hardcode the margin firstly because the user gets to...
by Captell
Fri Aug 13, 2010 12:33 am
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Upon further investigation it seems that this workaround wont really work. The problem comes when we want to overlay our bar chart with a line graph using a line such as line.Add(dte, y), which is how we are currently creating line series charts. We then rely on interval and axes label formats to ap...
by Captell
Thu Aug 12, 2010 11:37 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Ok, I think I've got a workaround now for the problem where labels don't align correctly with the bars, thanks. I know you say this is by design but I really think you need to reconsider that design. A bar graph by any definition I can find is primarilly used to show discrete values, and therefore t...
by Captell
Tue Aug 10, 2010 10:11 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Thanks Yeray, My application allows the user to use the chart editor to set properties on axes and other stuff in the chart. They also get to set what data is plotted, i.e. they set up their own database queries and then chart the resultant data. As the "problem" with the axes lables not lining up o...
by Captell
Sat Aug 07, 2010 11:20 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

A little more information, The problem with the dissapearing labels only seems to occur if there are 15 or more bars, less than 15 bars and the problem dosen't appear.

Thanks.
by Captell
Sat Aug 07, 2010 11:10 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Hi Christopher, I'm trying to implement a solution to this issue using custom labels but am running into some more issues. Im using the following code Imports Steema.TeeChart.Styles Imports Steema.TeeChart Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generate...
by Captell
Thu Aug 05, 2010 9:58 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

It is *apparently* wrong, not plainly wrong . Think that the actual XValue of the Bar is the *middle* of the Bar. Following the *middle* of the Bar down to the bottom axis and extrpolating the value by eye, I would say that it probably does fall on the 26th. The label of the 27th clearly does *not*...
by Captell
Thu Aug 05, 2010 9:37 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Ok accepted that everything conforms to the design paradigm but what about the situation in the example where the label under the bar is plainly wrong. It shows the left most bar with a label of 27 Dec, all be it slightly misaligned but never the less the bar has a label showing the 27th Dec. This i...
by Captell
Thu Aug 05, 2010 7:24 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Thanks again Christopher, I understand your explanation but if that is the case and if there are no bugs then one would expect the same behaviour to be present regardless of the series type. Consider the code and chart at the end of this post, it is exactly the same as the bar sample except with a l...
by Captell
Wed Aug 04, 2010 10:56 pm
Forum: .NET
Topic: X asix labels not lining up properly
Replies: 65
Views: 367519

Re: X asix labels not lining up properly

Hi Christopher, I've downloaded and installed the new build but unfortunately it doesn't really do any thing to resolve this issue. My original chart with weekly increment set and data starting on 26Dec shows labels not aligned to bars axis 1.png If I change the new offset value to 4 the labels are ...