Database Reference
In-Depth Information
FI g u R e 14 -20 The color wheel
The implementation using the InfoVis library is relatively easy. The class is
called Sunburst, and a complete sample is provided separately, and is available
from the Wiley website. The code that is specific to the color wheel (called
Sunburst by InfoVis) is shown.
var json = dpGetData();
//end
//init Sunburst
var sb = new $jit.Sunburst({
//id container for the visualization
injectInto: 'infovis',
//Change node and edge styles such as
//color, width, lineWidth and edge types
Node: {},
Edge: {},
//Draw canvas text. Can also be
//'HTML' or 'SVG' to draw DOM labels
Label: {},
//Add animations when hovering and clicking nodes
NodeStyles: {},
Events: {},
levelDistance: 190,
// Only used when Label type is 'HTML' or 'SVG'
Search WWH ::




Custom Search