One of the most useful features of Chart FX for Java is its versatility to render charts in different formats, in order to take advantage of the browser capability to display active content. One of the formats supported by Chart FX for Java is SVG (Scalable Vector Graphics).
Based on XML (Extensible Markup Language), SVG is a graphics format that will allow Web designers to add high-quality interactive vector graphics and animation to Web pages using only plain text commands. SVG enables Web developers and designers to create dynamically generated graphics from real-time data with precise structural and visual control. With this powerful new technology, developers can create a new generation of Web applications utilizing data-driven, interactive and personalized graphics.
Chart FX for Java can provide DrillDown functionality to charts using the SVG format, in the same way that is done with Image Maps. For further details on how to implement DrillDown using SVG and/or Image Maps, please refer to the Image Maps Generation section earlier in this help file.
SVG is still a Proposed Recommendation and additional information and status is available at the official SVG site: http://www.w3.org/Graphics/SVG/Overview.htm8.
In order to use this writer, you must configure the OutputWriter property to a valid SVGWriter object as follows:
chart1.setOutputWriter(new SoftwareFX.ChartFX.SVGWriter());
|
Setting the chart's output writer attribute to a support external graphics writer will instruct Chart FX to disregard the 3rd parameter of the getHtmlTag or getHtmlData methods. Therefore, you may disregard this parameter entirely in when calling the methods:
<%=chart1.getHtmlTag("400","300")%>
|
An SVG reader is required on the client in order to view the chart in SVG format. If no SVG reader is found on the client, Chart FX for Java will instruct the browser to download a reader from the URL specified in the SVGDownload tag of the configuration ChartFX.Internet.config file. By default, the download URL is http://www.adobe.com/svg/viewer/install/
.
|