Come posso visualizzare la descrizione visualizzata nell'immagine qui sotto come condivisa?Highcharts: formattatore del tooltip condiviso this.points [i]
Si potrebbe voler dare un'occhiata al Highcharts API Reference (in particolare le informazioni circa l'opzione comune): http://api.highcharts.com/highcharts#tooltip.formatter
Ecco il jsfiddle: http://jsfiddle.net/iginisruber/Ltqnab9x/1/
per fullscreen: http://jsfiddle.net/iginisruber/Ltqnab9x/1/embedded/result/
ho provato questo, ma non ha funzionato:
tooltip: {
\t \t \t shared: true,
\t \t \t formatter: function() {
\t \t \t \t var y_value_kwh = (this.points[i].y/1000).toFixed(2);
return '<span style="font-size: 10px">' + this.key + '</span><br/>' + '<span style="color:' + this.points[i].series.color + '">\u25CF</span> ' + this.points[i].series.name + ': <b>' + y_value_kwh + ' kWh</b><br/>';
},
},
codice attuale:
tooltip: {
\t \t \t //shared: true,
\t \t \t formatter: function() {
\t \t \t \t var y_value_kwh = (this.y/1000).toFixed(2);
return '<span style="font-size: 10px">' + this.key + '</span><br/>' + '<span style="color:' + this.series.color + '">\u25CF</span> ' + this.series.name + ': <b>' + y_value_kwh + ' kWh</b><br/>';
},
},
Uscita in corrente:
Impostare un grafico di esempio su jsbin.com o jsfiddle.com –
@AlfredoDelgado grazie per menzionare. ho aggiunto il jsfiddle. – ignisruber