lundi 25 juillet 2016

Proper initialization of flot.time with timezone-js (Angular & require.js)

Could someone tell me what is correct configuration of require.js to draw timezone-specific graps with flot.time.js on Angular app? My current rconfig.js looks like this:

paths: {
     ...
    'angular':                      '../bower_components' + '/angular/angular.min',
     ...
    'jQuery':                       '../bower_components' + '/jquery/dist/jquery',
     ...
    'timezone-js':                  '../bower_components' + '/timezone-js/src/date'
},
shim: {
     ...
    'flot': { deps: ['jQuery','timezone-js']},
    'flot-pie': { deps: ['flot']},
    'flot-time': { deps: ['flot']},
 ...
},

But with this config timezoneJS is undefined when flot.time is loading

Aucun commentaire:

Enregistrer un commentaire