history change chart colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ export default {
|
||||
},
|
||||
}
|
||||
},
|
||||
color: ['#000'],
|
||||
color: ['#BDBDBD'],
|
||||
series: [{
|
||||
type: 'bar',
|
||||
data: [],
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
if (this.chart) {
|
||||
const chartOptions = { series: this.chartOptions.series }
|
||||
chartOptions.series[0].data = this.filamentUsageArray
|
||||
chartOptions.color = [this.getPrimaryColor()]
|
||||
//chartOptions.color = [this.getPrimaryColor()]
|
||||
this.chart.setOption(chartOptions)
|
||||
this.chart.resize()
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ export default {
|
||||
type: 'bar',
|
||||
data: [],
|
||||
itemStyle: {
|
||||
color: '#000'
|
||||
color: '#BDBDBD'
|
||||
}
|
||||
}]
|
||||
},
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
if (this.chart) {
|
||||
const chartOptions = { series: this.chartOptions.series }
|
||||
chartOptions.series[0].data = this.printtimeAvgArray
|
||||
chartOptions.series[0].itemStyle.color = this.getPrimaryColor()
|
||||
//chartOptions.series[0].itemStyle.color = this.getPrimaryColor()
|
||||
this.chart.setOption(chartOptions)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user