Class Legend
represents legend
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Legend(raphael, what, params)
Legend
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Legend.create(raphael, what, params)
Creates new Legend object, for parameters meaning see Legend
|
Class Detail
Legend(raphael, what, params)
Legend
- Parameters:
- {Raphael} raphael
- rapheal instance
- {[[string|color|float|Object]]} what
- array of [string,color,width,attrs] arrays. attrs is passed to rapheal.path
- {Object} params Optional, Default: {}
- parameters of legend
- {float} params.x Optional, Default: 0.
- x coordinate of left upper corner [pixel]
- {float} params.y Optional, Default: 0.
- y coordinate of left upper corner [pixel]
- {float} params.len Optional, Default: 120.
- length of legend lines
- {float} params.fontSize Optional, Default: 20.
- font size of labels
- {float} params.dy Optional, Default: 30.
- y difference between individual lines
Method Detail
<static>
{Legend}
Legend.create(raphael, what, params)
Creates new Legend object, for parameters meaning see Legend
- Parameters:
- raphael
- what
- params
- Returns:
- {Legend} new Legend object