Skip to content

Commit

Permalink
Changed tooltip handling in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
highslide-software committed Aug 15, 2011
1 parent 0b98dc0 commit 92ae271
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions samples/stock/demo/data-grouping/demo.js
Expand Up @@ -66,13 +66,12 @@ $(function() {
formatter: function(){
var point = this.points[0],
series = point.series,
unit = series.unit && series.unit[0],
format = '%A, %b %e, %Y, %H:%M', // with hours
s;
if (unit == 'day') { // skip hours
format = '%A, %b %e, %Y';
}
if (series.tooltipHeaderFormat) {
format = series.tooltipHeaderFormat;
}

return '<b>' + Highcharts.dateFormat(format, this.x) + '</b>' +
'<br/>Temperature: ' + Highcharts.numberFormat(this.points[0].y, 1) +'°C';
Expand Down

0 comments on commit 92ae271

Please sign in to comment.