tooltip: Undefined (résolu)

Ce forum est dédié aux discussions qui concernent les graphiques réalisés avec la librairie Highstock, Une question, un bug ?

Modérateurs : jturlier, Météo Villarzel

Répondre
Javier
Messages : 263
Enregistré le : 15 févr. 2014, 09:23
Localisation : San Sebastián, España
Contact :

tooltip: Undefined (résolu)

Message par Javier » 18 févr. 2014, 20:11

Salut

Dans certains graphiques je vois (dans l'info-bulle): "undefined"

Comment peut-il être corrigé?

http://kocher.es/graficos-highcharts/3meses_viento.php
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
Image

Avatar du membre
Météo Villarzel
Administrateur du site
Messages : 524
Enregistré le : 06 févr. 2014, 09:48
Contact :

Re: tooltip: Undefined

Message par Météo Villarzel » 18 févr. 2014, 20:20

Salut Javier

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];
Direction, c'est le nom de la série de données

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+
Station Vantage Pro2+ avec station agricole - Weatherlink - GraphWeather 3.0.15b - Cumulus 1.9.4 - Windows 7/64
Graphique dynamique à partir d'une bd MySql - VP2SQL

Image

Javier
Messages : 263
Enregistré le : 15 févr. 2014, 09:23
Localisation : San Sebastián, España
Contact :

Re: tooltip: Undefined

Message par Javier » 18 févr. 2014, 20:29

:oops:

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
Image

Répondre