Skip to content

Commit

Permalink
[fix]: w/ date available on tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkuiw committed Oct 5, 2021
1 parent eed58c8 commit 59c5c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preview/big-number-trend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ const visObject = {
],
tooltip: {
formatter: function() {
// console.log(this.series)
return this.series.name + ":" + '<br>' + humanReadableNumber(percentageNumber(parseFloat(this.y), config.is_percentage_number),config.is_human_readable)
console.log(this.series)
return this.series.name + ": " + humanReadableNumber(percentageNumber(parseFloat(this.y), config.is_percentage_number),config.is_human_readable) + '<br> on: ' + ((new Date(this.x)).toISOString()).split('T')[0]
},
style: {
color: "#000000",
Expand Down

0 comments on commit 59c5c74

Please sign in to comment.