Class Chart
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
prepare
(com.orchestranetworks.ui.UIComponentWriter writer) Deprecated.static final void
Deprecated.From 2.6.1, please use the new APIprepareResources(UIComponentWriter, Template)
instead.final void
prepareResources
(com.orchestranetworks.ui.UIComponentWriter writer) Prepares the Chart framework.final void
prepareResources
(com.orchestranetworks.ui.UIComponentWriter writer, Template template) Prepares the framework using a specific Template object that specifies global options for all charts.final void
write
(com.orchestranetworks.ui.UIComponentWriter writer) Writes this chart to the HTML document.
-
Method Details
-
getContainerID
- Returns:
- Returns the id attribute of the
div
HTML element containing this chart.
-
write
public final void write(com.orchestranetworks.ui.UIComponentWriter writer) Writes this chart to the HTML document. -
prepare
Deprecated.From 2.6.1, please use the new APIprepareResources(UIComponentWriter)
instead.Prepares the Chart framework.This method includes all the javascript libraries and declares the appropriate javascript code required for the API to function properly.
This method must be called before any chart is written.- See Also:
-
prepare
@Deprecated public static final void prepare(com.orchestranetworks.ui.UIComponentWriter writer, Template template) Deprecated.From 2.6.1, please use the new APIprepareResources(UIComponentWriter, Template)
instead.Prepares the framework using a specific Template object that specifies global options for all charts.This is useful to provide a consistent look for all charts, such as the color-palette without having to redefine these options for each chart.
These options can be overridden for a specific chart using the Options object.
This method must be called before any chart is written. -
prepareResources
public final void prepareResources(com.orchestranetworks.ui.UIComponentWriter writer) Prepares the Chart framework.This method includes all the javascript libraries and declares the appropriate javascript code required for the API to function properly.
This method must be called before any chart is written.- Since:
- 2.6.1
- See Also:
-
prepareResources
public final void prepareResources(com.orchestranetworks.ui.UIComponentWriter writer, Template template) Prepares the framework using a specific Template object that specifies global options for all charts.This is useful to provide a consistent look for all charts, such as the color-palette without having to redefine these options for each chart.
These options can be overridden for a specific chart using the Options object.
This method must be called before any chart is written.
-
prepareResources(UIComponentWriter)
instead.