mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
Set zlevel for all graphs series
This commit is contained in:
parent
233af87eb4
commit
25c55b53a2
@ -227,6 +227,9 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
xAxis: data.hashrates.length === 0 ? undefined : {
|
xAxis: data.hashrates.length === 0 ? undefined : {
|
||||||
type: 'time',
|
type: 'time',
|
||||||
splitNumber: (this.isMobile() || this.widget) ? 5 : 10,
|
splitNumber: (this.isMobile() || this.widget) ? 5 : 10,
|
||||||
|
axisLabel: {
|
||||||
|
hideOverlap: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
legend: (this.widget || data.hashrates.length === 0) ? undefined : {
|
legend: (this.widget || data.hashrates.length === 0) ? undefined : {
|
||||||
data: [
|
data: [
|
||||||
@ -265,7 +268,7 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
formatter: (val) => {
|
formatter: (val) => {
|
||||||
const selectedPowerOfTen: any = selectPowerOfTen(val);
|
const selectedPowerOfTen: any = selectPowerOfTen(val);
|
||||||
const newVal = Math.round(val / selectedPowerOfTen.divider);
|
const newVal = Math.round(val / selectedPowerOfTen.divider);
|
||||||
return `${newVal} ${selectedPowerOfTen.unit}H/s`
|
return `${newVal} ${selectedPowerOfTen.unit}H/s`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
@ -293,6 +296,7 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
],
|
],
|
||||||
series: data.hashrates.length === 0 ? [] : [
|
series: data.hashrates.length === 0 ? [] : [
|
||||||
{
|
{
|
||||||
|
zlevel: 0,
|
||||||
name: 'Hashrate',
|
name: 'Hashrate',
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
@ -303,6 +307,7 @@ export class HashrateChartComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
zlevel: 1,
|
||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
name: 'Difficulty',
|
name: 'Difficulty',
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
|
@ -86,6 +86,7 @@ export class HashrateChartPoolsComponent implements OnInit {
|
|||||||
const legends = [];
|
const legends = [];
|
||||||
for (const name in grouped) {
|
for (const name in grouped) {
|
||||||
series.push({
|
series.push({
|
||||||
|
zlevel: 0,
|
||||||
stack: 'Total',
|
stack: 'Total',
|
||||||
name: name,
|
name: name,
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
@ -95,7 +96,7 @@ export class HashrateChartPoolsComponent implements OnInit {
|
|||||||
lineStyle: { width: 0 },
|
lineStyle: { width: 0 },
|
||||||
areaStyle: { opacity: 1 },
|
areaStyle: { opacity: 1 },
|
||||||
smooth: true,
|
smooth: true,
|
||||||
color: poolsColor[name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()],
|
color: poolsColor[name.replace(/[^a-zA-Z0-9]/g, '').toLowerCase()],
|
||||||
emphasis: {
|
emphasis: {
|
||||||
disabled: true,
|
disabled: true,
|
||||||
scale: false,
|
scale: false,
|
||||||
@ -199,7 +200,10 @@ export class HashrateChartPoolsComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
xAxis: data.series.length === 0 ? undefined : {
|
xAxis: data.series.length === 0 ? undefined : {
|
||||||
type: 'time',
|
type: 'time',
|
||||||
splitNumber: (this.isMobile()) ? 5 : 10,
|
splitNumber: this.isMobile() ? 5 : 10,
|
||||||
|
axisLabel: {
|
||||||
|
hideOverlap: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
legend: (this.isMobile() || data.series.length === 0) ? undefined : {
|
legend: (this.isMobile() || data.series.length === 0) ? undefined : {
|
||||||
data: data.legends
|
data: data.legends
|
||||||
|
@ -157,6 +157,7 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
zlevel: 0,
|
||||||
data: this.data.series[0],
|
data: this.data.series[0],
|
||||||
type: 'line',
|
type: 'line',
|
||||||
smooth: false,
|
smooth: false,
|
||||||
|
@ -122,6 +122,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
|
|||||||
if (index >= this.feeLimitIndex) {
|
if (index >= this.feeLimitIndex) {
|
||||||
newColors.push(this.chartColorsOrdered[index]);
|
newColors.push(this.chartColorsOrdered[index]);
|
||||||
seriesGraph.push({
|
seriesGraph.push({
|
||||||
|
zlevel: 0,
|
||||||
name: this.feeLevelsOrdered[index],
|
name: this.feeLevelsOrdered[index],
|
||||||
type: 'line',
|
type: 'line',
|
||||||
stack: 'fees',
|
stack: 'fees',
|
||||||
|
@ -214,6 +214,7 @@ export class PoolRankingComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
zlevel: 0,
|
||||||
minShowLabelAngle: 3.6,
|
minShowLabelAngle: 3.6,
|
||||||
name: 'Mining pool',
|
name: 'Mining pool',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
|
@ -167,6 +167,9 @@ export class PoolComponent implements OnInit {
|
|||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'time',
|
type: 'time',
|
||||||
splitNumber: (this.isMobile()) ? 5 : 10,
|
splitNumber: (this.isMobile()) ? 5 : 10,
|
||||||
|
axisLabel: {
|
||||||
|
hideOverlap: true,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
@ -189,6 +192,7 @@ export class PoolComponent implements OnInit {
|
|||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
zlevel: 0,
|
||||||
name: 'Hashrate',
|
name: 'Hashrate',
|
||||||
showSymbol: false,
|
showSymbol: false,
|
||||||
symbol: 'none',
|
symbol: 'none',
|
||||||
|
Loading…
Reference in New Issue
Block a user