new SimpleChartListener(xSpanopt, yPercopt)
Creates an object that will handle the positioning of the X axis and Y axis of
a Chart based on a few simple configuration parameters.
Note that this listener expects to listen to only one Chart but can correctly handle different lines as long as they can be represented on the same scale.
Methods from the ChartListener interface should not be called directly on instances of this class.
Note that this listener expects to listen to only one Chart but can correctly handle different lines as long as they can be represented on the same scale.
Methods from the ChartListener interface should not be called directly on instances of this class.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
xSpan |
Number |
<optional> |
60 | The size of the X axis. The units of the value depends on the model of the Chart instance and possibly on the parser configured on the Chart#setXAxis method. If not specified, then 60 will be used. |
yPerc |
Number |
<optional> |
20 | A percentage that is used for the first positioning of the Y axis: the Y axis will have as initial maximum position a value that is yPerc% greater than the first Y position and as initial minimum position a value that is yPerc% smaller than it. If not specified, then 20 (meaning 20%) will be used. |
Extends
Method Summary
Inherited Methods
|
Method Detail
-
onListenStart()
-