Hi Aldy,
The error means that ChartDirector expects the first argument of a method call to be a DrawArea object, but it is not a DrawArea object.
Are your code calling DataSet.setDataSymbol3. This method expects a DrawArea object as its first and only argument. Are your code passing in a DrawArea object?
The error may also occur if your code calls DataSet.setDataSymbol or DataSet.setDataSymbol2, but pass in a parameter that ChartDirector does not expect. For example, if DataSet.setDataSymbol2 is used, ChartDirector expects a text string as its argument. If the argument is not a text string, ChartDirector will forward it to setDataSymbol3 as a last resort, and you may get the error message you see.
Regards
Peter Kwan |