Search found 7 matches

by FatDonkey
Wed Mar 25, 2009 9:11 am
Forum: .NET
Topic: How to get a fixed aspect ratio
Replies: 1
Views: 2311

How to get a fixed aspect ratio

I draw geometrical figures on the chart and want to preserve their shape during zooming. e.g. a circle should not transform into an ellipse

How can i set the aspect ratio of a chart to 1:1 and keep it fixed automatically during zooming? Is there a setting for the aspect ratio?
by FatDonkey
Tue Mar 24, 2009 6:46 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

I've installed an old version: 3.5.3274.30663

Now it works!

Something is not right in your latest version.
by FatDonkey
Tue Mar 24, 2009 6:30 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

Altering the code generates an immediate exception:

Code: Select all

            tChart1.Draw();
            tChart1.Axes.Left.SetMinMax(0,10);
            tChart1.Axes.Bottom.SetMinMax(30,100);
by FatDonkey
Tue Mar 24, 2009 4:36 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

I placed your code in my project and filled in min and max values: private void InitializeChart() { for (int i = 0; i < 5; i++) { Steema.TeeChart.Styles.Series s = new Steema.TeeChart.Styles.Points(tChart1.Chart); for (int j = 0; j < 5; j++) { s.Add(j + i * 10, j); } } tChart1.Axes.Left.SetMinMax(0,...
by FatDonkey
Tue Mar 24, 2009 4:19 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

This is the Exception text (this time on a clean Windows XP embedded, SP2). The exception occurs during FirstLastVisible index calculation. System.IndexOutOfRangeException: Index was outside the bounds of the array. at Steema.TeeChart.Styles.ValueList.get_Item(Int32 index) at Steema.TeeChart.Styles....
by FatDonkey
Tue Mar 24, 2009 4:02 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

Hello, I am using the latest release. I got the errors in a more complex project. To reproduce them I created an empty project/form, placed a Chart and controller on it and added the filling procedure (see first post). I use VS2005 on win XP, SP3. I installed the latest updates for VS and .net. I th...
by FatDonkey
Tue Mar 24, 2009 2:58 pm
Forum: .NET
Topic: IndexOutOfRange Error when moving a chart to the left side.
Replies: 11
Views: 9199

IndexOutOfRange Error when moving a chart to the left side.

when I fill a chart like this: for (int i = 0; i < 5; i++) { Steema.TeeChart.Styles.Series s = new Steema.TeeChart.Styles.Points(tChart1.Chart); for (int j = 0; j < 5; j++) { s.Add(j+i*10, j); } } and then drag the chart contents to the left (right mouse button) an IndexOutOfRange error occurs with ...