loadFinancial method

Future<bool> loadFinancial()

Loads ChartJS Financial module.

Implementation

Future<bool> loadFinancial() {
  return _loadControllerFinancial.load(() async {
    var okChartJS = await load();
    if (!okChartJS) return false;

    var jsFullPath = minified ? FINANCIAL_JS_PATH_MIN : FINANCIAL_JS_PATH;
    var okJS = await AMDJS.require('chartjs_financial',
        jsFullPath: jsFullPath, globalJSVariableName: 'Chart.Financial');

    return okChartJS && okJS;
  });
}