Class ConfigurationLoader
- java.lang.Object
-
- org.pepstock.charba.client.commons.ConfigurationLoader
-
public final class ConfigurationLoader extends Object
Utility to load java script object in the CHART-JS configuration.
This utility needs to reduce visibility on java script objects for configuration.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadData(Configuration configuration, NativeObjectContainer data)
Loads the DATA in the configuration CHART.JS object.static void
loadOptions(Configuration configuration, NativeObjectContainer options)
Loads the OPTIONS in the configuration CHART.JS object.
-
-
-
Method Detail
-
loadOptions
public static void loadOptions(Configuration configuration, NativeObjectContainer options)
Loads the OPTIONS in the configuration CHART.JS object.- Parameters:
configuration
- CHART.JS object for configurationoptions
- chart options
-
loadData
public static void loadData(Configuration configuration, NativeObjectContainer data)
Loads the DATA in the configuration CHART.JS object.- Parameters:
configuration
- CHART.JS object for configurationdata
- datasets configuration
-
-