You can pass it an array of Chart_Data objects as data, the name of the visualization and, optional, an array contents the colors in what the Chart data is visualized.
This function returns the svg code for the visualized form of the internal data.
It receives the name of the visualization class to use. As $options, you can pass an array of options forwarded to the visualization class. The following options are also implemented in this function: * legend - If set, a legend is also generated. The value is also an array passed to the Chart::makeLegend() function.
This function does the same as get(), with one difference: The returned svg code is capsulated in a <svg>....</svg> element structure, so it returns a completely SVG document.