Salut
Dans certains graphiques je vois (dans l'info-bulle): "undefined"
Comment peut-il être corrigé?
http://kocher.es/graficos-highcharts/3meses_viento.php
tooltip: Undefined (résolu)
Modérateurs : jturlier, Météo Villarzel
-
- Messages : 263
- Enregistré le : 15 févr. 2014, 09:23
- Localisation : San Sebastián, España
- Contact :
tooltip: Undefined (résolu)
Modifié en dernier par Javier le 18 févr. 2014, 20:30, modifié 1 fois.
Davis Vantage Pro2 +, Windows 10, Windows 7 (64), Graphweather 3.0.15, Weatherlink 6.0.3, template Pierre-André, template Jachym
- Météo Villarzel
- Administrateur du site
- Messages : 524
- Enregistré le : 06 févr. 2014, 09:48
- Contact :
Re: tooltip: Undefined
Salut Javier
Dans le tooltip, tu as
Direction, c'est le nom de la série de données
tu dois mettre le même nom,
soit Dirección
ou Direction
Mais le même nom dans les deux champs.
A+
Dans le tooltip, tu as
Code : Tout sélectionner
formatter: function() {
var s = '<b>'+ Highcharts.dateFormat('%e %B a las %H:%M', this.x) +'</b>';
$.each(this.points, function(i, point) {
var unit = {
'Velocidad': 'km/h',
'Racha': 'km/h',
'Direction' : '°'
}[this.point.series.name];
Code : Tout sélectionner
{ //------------------------Direction
name: 'Dirección',
type: 'spline',
lineWidth: 0,
color: 'rgba(199, 21, 133, .9)',
yAxis: 1,
data: comArr(dwdir),
tooltip : {
valueDecimals : 1
},
marker: {
symbol: 'circle',
radius : 4,
enabled: true,
lineWidth: 0,
lineColor: 'rgba(199, 21, 133, .0)',
fillColor: 'rgba(199, 21, 133, .3)'
}
tu dois mettre le même nom,
soit Dirección
ou Direction
Mais le même nom dans les deux champs.
A+
-
- Messages : 263
- Enregistré le : 15 févr. 2014, 09:23
- Localisation : San Sebastián, España
- Contact :
Re: tooltip: Undefined
Parfait !
Merci beaucoup Pierre_André
Davis Vantage Pro2 +, Windows 10, Windows 7 (64), Graphweather 3.0.15, Weatherlink 6.0.3, template Pierre-André, template Jachym