Jump to content
Software FX Community

COD.ResetMinMax is gone!


User (Legacy)

Recommended Posts

Posted

I upgraded to the latest version of ChartFX Lite and my program no

longer compiles. The compilation error is taking place on a OpenData() call.

The call no longer accepts COD.ResetMinMax as a value. Why not? Removing

this value allows the program to compile, but charts draw very slowly. This

enumeration just seems to have vanished somehow. Where is it?

Posted

I upgraded to the latest version of ChartFX Lite and my program no

longer compiles. The compilation error is taking place on a OpenData() call.

The call no longer accepts COD.ResetMinMax as a value. Why not? Removing

this value allows the program to compile, but charts draw very slowly. This

enumeration just seems to have vanished somehow. Where is it?

Posted

I'm not sure if the removal of COD.ResetMinMax is what is causing the charts

to draw so slowly. The slowness is occurring when I set the legend for the

X axis of my line chart. This loop used to run really fast, but now is

insanely slow using the latest version:

for(int xIndex=0;xIndex<PerformanceData.ChartPoints.Length;xIndex++){

CumPLChart.Legend[xIndex]=PerformanceData.ChartPoints[xIndex].Date.ToString(

"MM-dd-yy");

}

Again, the code works but it's just too slow to be used in a real

application. Version 6.0.768.32264 worked fine. Version 6.0.865.33771 has

the problem.

David

Posted

I'm not sure if the removal of COD.ResetMinMax is what is causing the charts

to draw so slowly. The slowness is occurring when I set the legend for the

X axis of my line chart. This loop used to run really fast, but now is

insanely slow using the latest version:

for(int xIndex=0;xIndex<PerformanceData.ChartPoints.Length;xIndex++){

CumPLChart.Legend[xIndex]=PerformanceData.ChartPoints[xIndex].Date.ToString(

"MM-dd-yy");

}

Again, the code works but it's just too slow to be used in a real

application. Version 6.0.768.32264 worked fine. Version 6.0.865.33771 has

the problem.

David

Posted

1) COD.MinMax is no longer necessary and it is not consistent due to some

new API. You can reset the desired axes before calling OpenData by calling

axis.ResetScale.

2) I don't see how the chart can be drawn while your code is in a loop as

there is only one thread, please send us an example of the problem you are

experiencing.

--

FP

Software FX, Inc.

Posted

1) COD.MinMax is no longer necessary and it is not consistent due to some

new API. You can reset the desired axes before calling OpenData by calling

axis.ResetScale.

2) I don't see how the chart can be drawn while your code is in a loop as

there is only one thread, please send us an example of the problem you are

experiencing.

--

FP

Software FX, Inc.

Posted

> 2) I don't see how the chart can be drawn while your code is in a loop as

> there is only one thread, please send us an example of the problem you are

> experiencing.

The reason I thought that the chart was redrawing itself was because it

would continually flicker during the loop. I worked with Justin and Rob on

the problem, and eventually a solution was found. As it turns out, it has

nothing to do with COD.ResetMinMax. The problem applies to people who are

upgrading their projects from CFXLite to the full version. These people need

to:

- Uninstall CFXLite

- Delete the program files directory and \common files\install fx

directory

- Reinstall as 'administrator'

- For WinForms apps, all of the references need to be changed, and

ChartFX.Borders.dll must be referenced, regardless of whether or not custom

borders are being used. 'using' directives must be changed, etc..

- Existing charts must be deleted from all pre-existing forms and

re-added.

If each step is not performed exactly right, the program will still

compile but bizzare performance problems will occur (as described in my

previous message), and the charts will throw NullArgumentExceptions during

repainting in design view if their properties are examined or modified. I

sent Rob detailed screen shots and a followup email -- but I think I have

everything working now.

David

Posted

> 2) I don't see how the chart can be drawn while your code is in a loop as

> there is only one thread, please send us an example of the problem you are

> experiencing.

The reason I thought that the chart was redrawing itself was because it

would continually flicker during the loop. I worked with Justin and Rob on

the problem, and eventually a solution was found. As it turns out, it has

nothing to do with COD.ResetMinMax. The problem applies to people who are

upgrading their projects from CFXLite to the full version. These people need

to:

- Uninstall CFXLite

- Delete the program files directory and \common files\install fx

directory

- Reinstall as 'administrator'

- For WinForms apps, all of the references need to be changed, and

ChartFX.Borders.dll must be referenced, regardless of whether or not custom

borders are being used. 'using' directives must be changed, etc..

- Existing charts must be deleted from all pre-existing forms and

re-added.

If each step is not performed exactly right, the program will still

compile but bizzare performance problems will occur (as described in my

previous message), and the charts will throw NullArgumentExceptions during

repainting in design view if their properties are examined or modified. I

sent Rob detailed screen shots and a followup email -- but I think I have

everything working now.

David

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...