Puts the context Element in a 'blob' tooltip. Can also be used on sets.
Parameters
0
]x
or cx
]x
or cx
]Returns: object path element of the blob
Usage
paper.circle(50, 50, 8).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).blob(60);
Makes the context element darker by decreasing the brightness and increasing the saturation by a given factor. Can be called on Sets.
Parameters
2
]Returns: object Element
Usage
paper.circle(50, 50, 20).attr({
fill: "#ff0000",
stroke: "#fff",
"stroke-width": 2
}).darker(6);
Puts the context Element in a 'drop' tooltip. Can also be used on sets.
Parameters
0
]x
or cx
]x
or cx
]Returns: object path element of the drop
Usage
paper.circle(50, 50, 8).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).drop(60);
Puts the context Element in a 'flag' tooltip. Can also be used on sets.
Parameters
0
]x
or cx
]x
or cx
]Returns: object path element of the flag
Usage
paper.circle(50, 50, 10).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).flag(60);
Puts the context Element in a 'label' tooltip. Can also be used on sets.
Returns: object path element of the label.
Usage
paper.circle(50, 50, 10).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).label();
Makes the context element lighter by increasing the brightness and reducing the saturation by a given factor. Can be called on Sets.
Parameters
2
]Returns: object Element
Usage
paper.circle(50, 50, 20).attr({
fill: "#ff0000",
stroke: "#fff",
"stroke-width": 2
}).lighter(6);
Puts the context Element in a 'popup' tooltip. Can also be used on sets.
Parameters
'down'
, 'left'
, 'up'
[default], or 'right'
.5
]x
or cx
]y
or cy
]Returns: object path element of the popup
Usage
paper.circle(50, 50, 5).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).popup();
Resets brightness and saturation levels to their original values. See Element.lighter and Element.darker. Can be called on Sets.
Returns: object Element
Usage
paper.circle(50, 50, 20).attr({
fill: "#ff0000",
stroke: "#fff",
"stroke-width": 2
}).lighter(6).resetBrightness();
Puts the context Element in a 'tag' tooltip. Can also be used on sets.
Parameters
0
]5
]x
or cx
]x
or cx
]Returns: object path element of the tag
Usage
paper.circle(50, 50, 15).attr({
stroke: "#fff",
fill: "0-#c9de96-#8ab66b:44-#398235"
}).tag(60);
Puts the given text into a 'blob' tooltip. The text is given a default style according to g.txtattr. See Element.blob
Parameters
0
]Returns: object set containing the blob path and the text element
Usage
paper.blob(50, 50, "$9.99", 60);
Puts the given text into a 'drop' tooltip. The text is given a default style according to g.txtattr. See Element.drop
Parameters
0
]Returns: object set containing the drop path and the text element
Usage
paper.drop(50, 50, "$9.99", 60);
Puts the given text
into a 'flag' tooltip. The text is given a default style according to g.txtattr. See Element.flag
Parameters
0
]Returns: object set containing the flag path and the text element
Usage
paper.flag(50, 50, "$9.99", 60);
Puts the given text
into a 'label' tooltip. The text is given a default style according to g.txtattr. See Element.label
Parameters
Returns: object set containing the label path and the text element
Usage
paper.label(50, 50, "$9.99");
Puts the given text
into a 'popup' tooltip. The text is given a default style according to g.txtattr. See Element.popup
Note: The dir
parameter has changed from g.Raphael 0.4.1 to 0.5. The options 0
, 1
, 2
, and 3
has been changed to 'down'
, 'left'
, 'up'
, and 'right'
respectively.
Parameters
'down'
, 'left'
, 'up'
[default], or 'right'
.5
]Returns: object set containing the popup path and the text element
Usage
paper.popup(50, 50, "$9.99", 'down');
Puts the given text into a 'tag' tooltip. The text is given a default style according to g.txtattr. See Element.tag
Parameters
0
]5
]Returns: object set containing the tag path and the text element
Usage
paper.tag(50, 50, "$9.99", 60);
An array of color values that charts will iterate through when drawing chart data values.
An attribute object that charts will set on all generated shims (shims being the invisible objects that mouse events are bound to)
Default value
{ stroke: 'none', fill: '#000', 'fill-opacity': 0 }
An attribute object that charts and tooltips will set on any generated text
Default value
{ font: '12px Arial, sans-serif', fill: '#fff' }