Make all mining charts tooltips uniform

This commit is contained in:
nymkappa
2022-06-10 23:34:13 +02:00
parent bdc1bd386e
commit 08a45ea680
7 changed files with 40 additions and 39 deletions

View File

@@ -186,7 +186,7 @@ export class HashrateChartPoolsComponent implements OnInit {
borderColor: '#000',
formatter: function (data) {
const date = new Date(data[0].data[0]).toLocaleDateString(this.locale, { year: 'numeric', month: 'short', day: 'numeric' });
let tooltip = `<b style="color: white; margin-left: 18px">${date}</b><br>`;
let tooltip = `<b style="color: white; margin-left: 2px">${date}</b><br>`;
data.sort((a, b) => b.data[1] - a.data[1]);
for (const pool of data) {
if (pool.data[1] > 0) {