io uso tooltip.pointFormat
di rendere i dati aggiuntivi nel tooltip. Sfortunatamente solo point.x
è formattato correttamente con un separatore di migliaia.numeri Format tooltip in Highcharts
$(function() {
Highcharts.setOptions({
global: {
useUTC: false,
},
lang: {
decimalPoint: ',',
thousandsSep: '.'
}
});
$('#container').highcharts({
xAxis: {
type: 'datetime'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.y}</b><br/>' + 'Count: <b>{point.count}</b><br/>',
shared: true
},
series: [{
data: [{
y: 20009.9,
count: 20009.9
}, {
y: 10009.9,
count: 20009.9
}, {
y: 40009.9,
count: 20009.9
}],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 3600 * 1000 // one hour
}]
});
});
Usi _dot_ come 'thousandsSep' di proposito? – mudasobwa
Sì, perché sono in Germania. –