Minor tweaks to charts
This commit is contained in:
parent
6bc310acbf
commit
8d8bd905a6
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const fontScale = 1;
|
||||
const fontScale = 0.8;
|
||||
|
||||
const backgroundColor = "#f9f9f9";
|
||||
const tooltipBgColor = "#e7e7f5";
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue