public interface AQChartFactory
Synopsis:
ChartFactory creates charts and provides utility methods for creating request urls for a ChartServlet.
Description:
ChartFactory provides an interface for creating charts.
Charts contain a data model and a set of properties which control the chart's appearance.
Once the model and properties are specified, the Chart can be rendered to an image.
ChartFactory also provides utility methods for generating ChartServlet request url strings.
Modifier and Type | Method and Description |
---|---|
String |
getServletString(AQChart chart)
Get a string containing the url parameters used to make a ChartServlet request.
|
boolean |
isChartAvailable()
This method returns TRUE if the chart rendering is available.
|
AQChart |
newChart()
Get a new AQChart instance
|
String |
toDataString(AQChart chart)
Get the data portion of the servlet request parameters.
|
String |
toPropertiesString(AQChart chart)
Get the properties portion of the servlet request parameters.
|
boolean isChartAvailable()
AQChart newChart()
String getServletString(AQChart chart)
The current format for these parameters is: data=<the data string>&properties=<the properties string>
An example url is: http://<host>/chart?data=<the data string>&properties=<the properties string>
chart
- Chart containing data & properties used to generate the Chart servlet parameter stringString toDataString(AQChart chart)
The format of the data string is: category="[CATEGORY_NAME], [CATEGORY_NAME], ..." series="[SERIES_NAME], [SERIES_NAME], ...", values="[1,2,3,4,5,...], [3,4,5,6,7...], ..."
chart
- Chart containing data used to generate the data scriptString toPropertiesString(AQChart chart)
The format of the properties string is: properties='Chart="{area}", RotX=321, RotY=0, RotZ=0, ZoomScalar=1.0, ShowLegend=true, ...'
chart
- ChartRenderer containing properties used to generate the properties script
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.