Search found 43 matches

by Gp
Wed Feb 28, 2007 6:50 pm
Forum: .NET
Topic: Version 3 enhancements
Replies: 6
Views: 10459

Hi Narcís,

Thanks, I did read that thread but it didn't really tell me much. Does v3 use .NET 3.0? Why would I use v3? That's the type of information I am looking for.

Gary
by Gp
Tue Feb 27, 2007 6:42 pm
Forum: .NET
Topic: Version 3 enhancements
Replies: 6
Views: 10459

I am also looking for a list of the changes and enhancements that will be in version 3. What is version 3?
by Gp
Wed Jan 17, 2007 10:32 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

Correction - this workaround doesn't work in all cases. If the bar data is cleared, the first time data is added and the chart is redrawn the problem occurs. This makes it so I cannot use a bar chart. Add a button that clears the bar data to the project I had posted earlier and you will see the prob...
by Gp
Tue Jan 16, 2007 5:09 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

Thanks, this workaround seems to work for me. I also had to put this fix into the tChart1_Zoomed callout. The bar widths were also not being set correctly the first when zoomed.
by Gp
Fri Jan 12, 2007 5:13 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

I've posted a Word document with duplication steps and screenshots.
by Gp
Thu Jan 11, 2007 6:45 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

Did you test it with the TeeChart version I included with the project?
by Gp
Wed Jan 10, 2007 5:25 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

I have posted a project to the newsgroup.
by Gp
Wed Jan 10, 2007 12:37 am
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

I have found that the BeforeDrawSeries and BeforeDrawAxis events are called AFTER the code that sets the custom bar size (CustomBar.DoCalcBarWidth()). So I need to set my bar size in BeforeDraw. However, I have found that sometimes when unzooming, the chart bounds are not set correctly the first tim...
by Gp
Mon Jan 08, 2007 6:40 pm
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

So is there any other way to calculate the chart width before drawing, such as subtracting the margin or label sizes?

What I am doing is setting the bar width to match a time interval. So of course I need to set the width before the bar is drawn!
by Gp
Sat Jan 06, 2007 12:39 am
Forum: .NET
Topic: Chart width
Replies: 14
Views: 20155

Chart width

Hi,

How can I determine the width of the actual drawing area of the chart? (not the panel and not including labels, margins, etc...)

I tried:
Rectangle rc = tChart1.Chart.ChartRect;
int width = rc.Width;

But it does not seem to be correct.

Thanks!
by Gp
Thu Jan 04, 2007 11:41 pm
Forum: .NET
Topic: Bar graph clipping
Replies: 1
Views: 4863

Bar graph clipping

I have a bar graph where the bars are 50 pixels wide.

When I pan the chart, as the center of the a bar goes beyond the left side chart bounds the entire bar disappears. This does not happen when the bar is panned off the right side.

Is there a way to prevent this clipping action to occur?
by Gp
Thu Sep 07, 2006 4:12 pm
Forum: .NET
Topic: Offset axis labels
Replies: 6
Views: 10166

Yes, I found that the custom label color has to be set explicitly when one is added, if you want something other than black. Steema.TeeChart.AxisLabelItem item = tChart1.Axes.Bottom.Labels.Items.Add(i + (width / 2), i.ToString()); item.Font.Color = tChart1.Axes.Bottom.Labels.Color; Also, to work in ...
by Gp
Wed Sep 06, 2006 9:58 pm
Forum: .NET
Topic: Offset axis labels
Replies: 6
Views: 10166

However, I have one additional issue with my particular graph. It has a black background, and while the grid lines show up in the correct location the labels themselves do not appear. This works fine in a small test project, any ideas why the label text would not be shown? The labels displayed when ...
by Gp
Wed Sep 06, 2006 9:55 pm
Forum: .NET
Topic: Offset axis labels
Replies: 6
Views: 10166

Well I kinda sorta answered my own question. This code works for me, I assume a certain label width but for my needs that is OK. private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { Steema.TeeChart.AxisLabelItem CurrentLabel; int labelWidth = 40; int labelCount = (in...
by Gp
Wed Sep 06, 2006 5:15 pm
Forum: .NET
Topic: Offset axis labels
Replies: 6
Views: 10166

I think custom labels will work for me, but I need to find a way to avoid label overlap. This code: private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g) { tChart1.Header.Text=""; Steema.TeeChart.AxisLabelItem CurrentLabel, PreviousLabel; for (int i=1; i<tChart1.Axes.Le...