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:
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);
}