Changes between Version 30 and Version 31 of WikiStart
- Timestamp:
- 02/23/18 15:41:22 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v30 v31 18 18 1. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/services/apiData.js services/apiData.js] on ajoute la nouvelle fonction (par ex. `getWeatherStationsForecastData `) dans la section qui correspond à la source de données (Users/Maya/MINERVE/resource): 19 19 {{{ 20 #!div style="font-size: 80%;width:80%;"20 #!div style="font-size:90%;width:80%;" 21 21 {{{ 22 22 var getWeatherStationsForecastData = function (product, stationId, refDate) { … … 27 27 2. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/services/appData.js services/appData.js] 28 28 {{{ 29 #!div style="font-size: 80%;width:80%;"29 #!div style="font-size:90%;width:80%;" 30 30 {{{ 31 32 31 this.loadMeteoStationData = function (station, callback) { 32 // [...] 33 33 34 35 36 34 var prevC1Temp500m = apiData.getWeatherStationsForecastData(config.weatherProductId.cosmo1_t_500m, station.stationId, refDate).then(function (data) { 35 stationData.prevData.c1Temp500m = data; 36 }); 37 37 }}} 38 38 }}} 39 39 3. dans le fichier [https://trac.crealp.ch/VIVA/browser/trunk/web/app/scripts/directives/graph.js directives/graph.js] 40 40 {{{ 41 #!div style="font-size: 80%;width:80%;"41 #!div style="font-size:90%;width:80%;" 42 42 {{{ 43 44 45 46 47 48 49 50 51 52 53 54 55 56 43 // Spatial temperatures 44 if (scope.station.data.prevData.c1Temp500m.length > 0) { 45 highchart.addSeries(graphService.createSerie( 46 gettextCatalog.getString('portal_right_panel_tab_meteo_graph_temp_prev_c1_500m_serie_name'), 47 scope.station.data.prevData.c1Temp500m, 48 '#9900ff', 49 config.highchart.types.line, 50 0, 51 false, 52 null, 53 appData.getDates().ref, 54 gettextCatalog.getString('portal_unit_c') 55 )); 56 } 57 57 }}} 58 58 }}}