GraphForm.setLineEquation(line)
Specifies the model to fit to the data. Note: There is no corresponding “getter” function.
Example
Chart Component Script
var form = new LineForm(); (1)
var equation = new LogarithmicLineEquation();
form.setLineEquation(equation); (2)
form.setColor(java.awt.Color(0xff0000));
graph.addForm(form); (3)
| 1 | Create the GraphForm object. |
| 2 | Use setLineEquation() to set the curve fit. |
| 3 | Use EGraph.addForm(form) to add the GraphForm to the Chart. |

Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.
|