new RepartitionGraph(options, target [, width] [, height])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
options |
Object | |||
target |
Element | element to place in |
||
width |
number |
<optional> |
260 | canvas width |
height |
number |
<optional> |
150 | canvas height |
- Source:
- control/RepartitionGraph.js
Fires:
- change:limit
Extends
- ol_Object
Methods
-
draw()
-
Dessin du graphe
- Source:
- control/RepartitionGraph.js
-
px2value(x)
-
Convert pixel to value
Parameters:
Name Type Description x
number - Source:
- control/RepartitionGraph.js
Returns:
- Type
- number
-
setRepartition(stat, mode, values, limits, colors)
-
Show new repartition
Parameters:
Name Type Description stat
Object mode
string values
Array.<number> limits
Array.<number> colors
Array.<string> - Source:
- control/RepartitionGraph.js
-
setType(type)
-
Set graphe type
Parameters:
Name Type Description type
string histogram or distribution
- Source:
- control/RepartitionGraph.js
-
value2px(value)
-
Convert value to pixel
Parameters:
Name Type Description value
number - Source:
- control/RepartitionGraph.js
Returns:
- Type
- number