This commit is contained in:
1 parent
e66b623353
commit
d894a486ca
1 file changed
+16
-2
@@ -69,7 +69,8 @@
|
|||||||
borderColor: '#333',
|
borderColor: '#333',
|
||||||
backgroundColor: 'rgba(0,0,0,0.05)',
|
backgroundColor: 'rgba(0,0,0,0.05)',
|
||||||
tension: 0.3,
|
tension: 0.3,
|
||||||
fill: true
|
fill: true,
|
||||||
|
yAxisID: 'y'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '缓存命中数',
|
label: '缓存命中数',
|
||||||
@@ -77,7 +78,8 @@
|
|||||||
borderColor: '#4caf50',
|
borderColor: '#4caf50',
|
||||||
backgroundColor: 'rgba(76, 175, 80, 0.1)',
|
backgroundColor: 'rgba(76, 175, 80, 0.1)',
|
||||||
tension: 0.3,
|
tension: 0.3,
|
||||||
fill: true
|
fill: true,
|
||||||
|
yAxisID: 'y1'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -96,7 +98,19 @@
|
|||||||
},
|
},
|
||||||
scales: {
|
scales: {
|
||||||
y: {
|
y: {
|
||||||
|
type: 'linear',
|
||||||
|
display: true,
|
||||||
|
position: 'left',
|
||||||
beginAtZero: true
|
beginAtZero: true
|
||||||
|
},
|
||||||
|
y1: {
|
||||||
|
type: 'linear',
|
||||||
|
display: true,
|
||||||
|
position: 'right',
|
||||||
|
beginAtZero: true,
|
||||||
|
grid: {
|
||||||
|
drawOnChartArea: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user