Class: Legend

RaphaelTools. Legend

represents legend

new Legend(paper, what, params)

Legend
This:
Parameters:
Name Type Argument Description
paper Raphael.Paper rapheal instance
what Array array of [string,color,width,attrs] arrays. attrs is passed to rapheal.path
params Object <optional>
parameters of legend
Properties
Name Type Argument Description
x number <optional>
=0.] x coordinate of left upper corner [pixel]
y number <optional>
=0.] y coordinate of left upper corner [pixel]
len number <optional>
=120.] length of legend lines
fontSize number <optional>
=20.] font size of labels
dy number <optional>
=30.] y difference between individual lines
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1390

Methods

<static> create() → {RaphaelTools.Legend}

Creates new Legend object, for parameters meaning see RaphaelTools.Legend
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1414
Returns:
new Legend object
Type
RaphaelTools.Legend