This is a migrated thread and some comments may be shown as answers.

Secondary axis - Maximum value problem

2 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 06 May 2011, 07:10 PM
Hi,
I am using the charts to draw 2 different data series each one linked to a different axis. The values in the Dataseries are relatively large (30 millions and more). The first axis is linked to the first Dataseries and the maximum is properly set. The secondary Y axis is created, added to the chart area but when setting the maximum, the application goes into an infinite loop (OutOfMemory).
This problem seems to happen when setting the maximum to a value larger than 10 millions.

Thank You
Julien

Here is the code creating the fault:
public MainWindow()
{
    InitializeComponent();
 
    //Creating the second Y axis
    AxisY secondaryAxis = new AxisY();
    secondaryAxis.AxisName = SECONDARY_AXIS_NAME;
    secondaryAxis.AutoRange = false;
    secondaryAxis.DefaultLabelFormat = "N";
    secondaryAxis.Step = 10000000;
    secondaryAxis.MinValue = 0;
    secondaryAxis.MaxValue = 100000000;
    chart.DefaultView.ChartArea.AdditionalYAxes.Add(secondaryAxis);
}

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 11 May 2011, 07:48 AM
Hello Julien,

Please, find attached a sample application which we have used to test this issue locally and which works as expected on our side. Perhaps we are missing some of the details of your scenario. Could you , please, have a look at it and if this problem persists it would be very helpful for us if you're able to modify it so that the issue is reproducible.

Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Julien
Top achievements
Rank 1
answered on 11 May 2011, 03:09 PM
Tank you. We using Q2 2010. We will have to upgrade I gest.
Tags
Chart
Asked by
Julien
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Julien
Top achievements
Rank 1
Share this question
or