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, axisLabel: axisLabel,
axisLine: axisLine, axisLine: axisLine,
type: "time", type: "time",
name: "Date",
}, },
yAxis: { yAxis: {
axisTick: axisTick, axisTick: axisTick,
splitLine: { splitLine: {
show: false, show: false,
}, },
axisLabel: axisLabel, axisLabel: {
fontSize: 12 * fontScale,
color: textColor,
formatter(value, index) {
return nFormatter(value, 0);
},
},
axisLine: axisLine, axisLine: axisLine,
}, },

View File

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

View File

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

View File

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