A RESTful browser for eXist Function Modules


http://exist-db.org/xquery/jfreechart
A module for generating charts using the JFreeChart library.

jfreechart:render($chart-type as xs:string, $configuration as node(), $data as node()) xs:base64Binary?
Render chart using JFreechart. Check documentation on http://www.jfree.org/jfreechart/ for details about chart types, parameters and data structures.
$chart-typeThe type of chart to render. Supported chart types: LineChart, LineChart3D, MultiplePieChart, MultiplePieChart3D, PieChart, PieChart3D, RingChart, StackedAreaChart, StackedBarChart, StackedBarChart3D, WaterfallChart.
$configurationThe configuration for the chart. The configuration should be supplied as follows: <configuration><param1>Value1</param1><param2>Value2</param2>/<configuration>. Supported parameters: width height title categoryAxisLabel timeAxisLabel valueAxisLabel domainAxisLabel rangeAxisLabel pieSectionLabel pieSectionNumberFormat pieSectionPercentFormat orientation titleColor chartBackgroundColor plotBackgroundColor rangeLowerBound rangeUpperrBound categoryItemLabelGeneratorClass seriesColors sectionColors sectionColorsDelimiter categoryAxisColor valueAxisColortimeAxisColor order legend tooltips urls.
$dataThe CategoryDataset or PieDataset, supplied as JFreechart XML.

Returns the generated PNG image file

jfreechart:stream-render($chart-type as xs:string, $configuration as node(), $data as node()) empty()
Render chart using JFreechart. Check documentation on http://www.jfree.org/jfreechart/ for details about chart types, parameters and data structures. Output is directly streamed into the servlet output stream.
$chart-typeThe type of chart to render. Supported chart types: LineChart, LineChart3D, MultiplePieChart, MultiplePieChart3D, PieChart, PieChart3D, RingChart, StackedAreaChart, StackedBarChart, StackedBarChart3D, WaterfallChart.
$configurationThe configuration for the chart. The configuration should be supplied as follows: <configuration><param1>Value1</param1><param2>Value2</param2>/<configuration>. Supported parameters: width height title categoryAxisLabel timeAxisLabel valueAxisLabel domainAxisLabel rangeAxisLabel pieSectionLabel pieSectionNumberFormat pieSectionPercentFormat orientation titleColor chartBackgroundColor plotBackgroundColor rangeLowerBound rangeUpperrBound categoryItemLabelGeneratorClass seriesColors sectionColors sectionColorsDelimiter categoryAxisColor valueAxisColortimeAxisColor order legend tooltips urls.
$dataThe CategoryDataset or PieDataset, supplied as JFreechart XML.
Return to list of all modules