Search found 7 matches

by Simon Dahlquist SP
Mon Sep 24, 2012 6:30 am
Forum: .NET
Topic: Incompatible issues after version update
Replies: 3
Views: 4193

Re: Incompatible issues after version update

Hi Sandra, I'm glad to read that you can't reproduce this problem in the newest version. I bought an update to the latest version before the weekend and will install that during this week. I'll write and status update here when I'm done with that. Hopefully this problem is caused by some unsuccessed...
by Simon Dahlquist SP
Fri Sep 21, 2012 8:32 am
Forum: .NET
Topic: Incompatible issues after version update
Replies: 3
Views: 4193

Incompatible issues after version update

I've updated teechart from .Net version 3.x to version 4.1. After update I got following errors in code (VS 2010): this .tChart1.Axes.Depth.Labels. GridIgnoresLabelSize = false ; this .tChart1.Axes.Depth .LabelsAsSeriesTitles = true ; The compiler give following messages: Error 4 'Steema.TeeChart.Ax...
by Simon Dahlquist SP
Thu Jun 14, 2012 5:22 pm
Forum: .NET
Topic: Change panel margins based on visible axis
Replies: 8
Views: 12080

Re: Change panel margins based on visible axis

Hi Sandra, I'm sorry to tell you that your solution is not what I want. What I want is additional custom axis that acts like the standard left and right axes except from that the custom axis will be placed outside the right and left axis. The space for each axis will be adjusted to fit what's visibl...
by Simon Dahlquist SP
Wed Jun 13, 2012 4:36 pm
Forum: .NET
Topic: Change panel margins based on visible axis
Replies: 8
Views: 12080

Re: Change panel margins based on visible axis

Thanks a lot for the answer Sandra! It solved parts of my problem. the MaxLabelsWidth is really good but I need to calculate the total horizontal space for the axis including title if visible. Is there a way to do that? if the title is rotated 90 degrees: tChart1.Axes.Left.MaxLabelsWidth() + tChart1...
by Simon Dahlquist SP
Wed Jun 13, 2012 9:45 am
Forum: .NET
Topic: Change panel margins based on visible axis
Replies: 8
Views: 12080

Re: Change panel margins based on visible axis

I found what causes the error in the chart. foreach (Axes axes in tChart1.Axes.Custom) if (axes.Visible) visibleAxes++; is wrong. The correct is foreach (Axis axis in tChart1.Axes.Custom) if (axis.Visible) visibleAxes++; Somehow I do not get this error as an unhandled exception in this solution but ...
by Simon Dahlquist SP
Wed Jun 13, 2012 8:40 am
Forum: .NET
Topic: Change panel margins based on visible axis
Replies: 8
Views: 12080

Re: Change panel margins based on visible axis

Here is a slolution with the problem.

Instructions:

Start application

Press Settings button and add a custom axis.

Press Refresh button.

Check the Include checkbox.

Press Refresh button - the problem occurs.

Regards,

Simon
by Simon Dahlquist SP
Tue Jun 12, 2012 2:49 pm
Forum: .NET
Topic: Change panel margins based on visible axis
Replies: 8
Views: 12080

Change panel margins based on visible axis

I'm working on implementing automatic adjustment of left margin on the panel based on which axes are shown. I've stared with this piece of code: private void tChart1_BeforeDrawSeries(object sender, Graphics3D g) { var sizeOfAxes = 30; var visibleAxes = 0; if (tChart1.Axes.Left.Visible) visibleAxes++...