Minor tweaks to charts

This commit is contained in:
Sam 2024-08-08 14:28:01 +01:00
parent 6bc310acbf
commit 8d8bd905a6
4 changed files with 11 additions and 5 deletions

View File

@ -44,14 +44,19 @@ function updateChart() {
axisLabel: axisLabel,
axisLine: axisLine,
type: "time",
name: "Date",
},
yAxis: {
axisTick: axisTick,
splitLine: {
show: false,
},
axisLabel: axisLabel,
axisLabel: {
fontSize: 12 * fontScale,
color: textColor,
formatter(value, index) {
return nFormatter(value, 0);
},
},
axisLine: axisLine,
},

View File

@ -1,4 +1,4 @@
const fontScale = 1;
const fontScale = 0.8;
const backgroundColor = "#f9f9f9";
const tooltipBgColor = "#e7e7f5";

View File

@ -38,7 +38,7 @@ function initEchart(dataArr) {
type: "value",
name: "Hashrate (H/s)",
nameLocation: "middle",
nameGap: 35,
nameGap: 30,
nameTextStyle: textStyleMain,
position: "left",
alignTicks: true,

View File

@ -31,7 +31,7 @@ function initEchart(dataArr) {
yAxis: [
{
type: "value",
name: "Total Daily Rewards (USD)",
name: "Rewards (USD)",
nameLocation: "middle",
nameGap: 35,
nameTextStyle: textStyleMain,
@ -53,6 +53,7 @@ function initEchart(dataArr) {
type: "value",
name: "Block Subsidy (BTC)",
nameLocation: "middle",
nameGap: 20,
nameTextStyle: {
fontSize: 12 * fontScale,
color: textColor,