made tooltip smarter for when comparing
This commit is contained in:
@@ -261,7 +261,13 @@
|
|||||||
plotBands: plotBands // Alternating background for years
|
plotBands: plotBands // Alternating background for years
|
||||||
},
|
},
|
||||||
yAxis: { title: { text: 'Amount ($)' } },
|
yAxis: { title: { text: 'Amount ($)' } },
|
||||||
tooltip: { pointFormat: '{point.x:%Y-%m-%d}: <b>{point.y:.2f}</b>' },
|
tooltip: {
|
||||||
|
pointFormatter: function ()
|
||||||
|
{
|
||||||
|
if( this.series.symbol == 'circle' ) { s='\u25CF' } else { s='\u2B25' }
|
||||||
|
return '<span style="color:' + this.point.color + '">' + s + '</span> <b>' + this.point.y + ':</b> ' + this.series.name + '<br>'
|
||||||
|
}, shared:true
|
||||||
|
},
|
||||||
annotations: annotations, // Add annotations
|
annotations: annotations, // Add annotations
|
||||||
series: [
|
series: [
|
||||||
{ name: "Savings", data: chartData, marker: { radius: 2 } }
|
{ name: "Savings", data: chartData, marker: { radius: 2 } }
|
||||||
|
|||||||
Reference in New Issue
Block a user