Commit 953f08b 1 parent 01fc88f commit 953f08b Copy full SHA for 953f08b
File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 52
52
yPadding: 14 ,
53
53
displayColors: false ,
54
54
mode: ' index' ,
55
- intersect: false
55
+ intersect: false ,
56
+ callbacks: {
57
+ title : tooltipItem => {
58
+ return ` 🗓 ${ tooltipItem[0 ].xLabel } `
59
+ },
60
+ label : (tooltipItem , data ) => {
61
+ let dataset = data .datasets [tooltipItem .datasetIndex ]
62
+ let currentValue = dataset .data [tooltipItem .index ]
63
+ return ` 📦 ${ currentValue .toLocaleString ()} `
64
+ }
65
+ }
56
66
},
57
67
legend: {
58
68
display: false
Original file line number Diff line number Diff line change 3
3
<h1 class =" Package__title" >{{ packageName }}</h1 >
4
4
<div class =" Package__info" >
5
5
<div class =" Package__info-item" >
6
- <span >{{ totalDownloads }}</span ><span class =" info-label" >Total Downloads</span >
6
+ <span >{{ totalDownloads.toLocaleString() }}</span ><span class =" info-label" >Total Downloads</span >
7
7
</div >
8
8
<div class =" Package__info-item" >
9
9
<span >{{ period }}</span ><span class =" info-label" >Period</span >
You can’t perform that action at this time.
0 commit comments