Class 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 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 configuration
        options - 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 configuration
        data - datasets configuration