Graphics Reference
In-Depth Information
Figure 8-11:
By using visual attributes, you can show e-mail data with
color coding.
Adding Interaction
Althoughthevisualization stepsjustdiscussedperhapscreatearesultthatis
visually appealing, it doesn't reveal the details of any of the items. A tooltip
would be a simple and highly useful interaction to add. SVG conveniently
provides a
title
object that contains text. You can add the
title
object to
any SVG object, and most browsers will show the
title
as a tooltip. Adding
the following code creates a
title
for the circles: