[O] Optimize color representation

This commit is contained in:
Hykilpikonna
2019-11-07 21:39:09 -05:00
parent e7f29ad0bf
commit 7cc4567245
+4 -20
View File
@@ -56,44 +56,28 @@ export default class OverallLine extends Vue
[ [
{ {
yAxis: 20000, yAxis: 20000,
itemStyle: itemStyle: {color: 'rgba(230,253,255,0.1)'}
{
color: 'rgb(230,253,255)',
opacity: 0.1
}
}, {yAxis: 100} }, {yAxis: 100}
], ],
// 80 to 100 // 80 to 100
[ [
{ {
yAxis: 100, yAxis: 100,
itemStyle: itemStyle: {color: 'rgba(241,255,237,0.1)'}
{
color: 'rgb(241,255,237)',
opacity: 0.1
}
}, {yAxis: 80} }, {yAxis: 80}
], ],
// 70 to 80 // 70 to 80
[ [
{ {
yAxis: 80, yAxis: 80,
itemStyle: itemStyle: {color: 'rgba(255,244,213,0.1)'}
{
color: 'rgb(255,244,213)',
opacity: 0.1
}
}, {yAxis: 70} }, {yAxis: 70}
], ],
// Below 70 (Fail) // Below 70 (Fail)
[ [
{ {
yAxis: 70, yAxis: 70,
itemStyle: itemStyle: {color: 'rgb(255,190,184, 0.1)'}
{
color: 'rgb(255,190,184)',
opacity: 0.1
}
}, {yAxis: -1000} }, {yAxis: -1000}
] ]
] ]