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: [{
|
series: [{
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: [],
|
data: [],
|
||||||
@@ -130,7 +130,7 @@ export default {
|
|||||||
if (this.chart) {
|
if (this.chart) {
|
||||||
const chartOptions = { series: this.chartOptions.series }
|
const chartOptions = { series: this.chartOptions.series }
|
||||||
chartOptions.series[0].data = this.filamentUsageArray
|
chartOptions.series[0].data = this.filamentUsageArray
|
||||||
chartOptions.color = [this.getPrimaryColor()]
|
//chartOptions.color = [this.getPrimaryColor()]
|
||||||
this.chart.setOption(chartOptions)
|
this.chart.setOption(chartOptions)
|
||||||
this.chart.resize()
|
this.chart.resize()
|
||||||
}
|
}
|
||||||
|
@@ -74,7 +74,7 @@ export default {
|
|||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: [],
|
data: [],
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#000'
|
color: '#BDBDBD'
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
@@ -107,7 +107,7 @@ export default {
|
|||||||
if (this.chart) {
|
if (this.chart) {
|
||||||
const chartOptions = { series: this.chartOptions.series }
|
const chartOptions = { series: this.chartOptions.series }
|
||||||
chartOptions.series[0].data = this.printtimeAvgArray
|
chartOptions.series[0].data = this.printtimeAvgArray
|
||||||
chartOptions.series[0].itemStyle.color = this.getPrimaryColor()
|
//chartOptions.series[0].itemStyle.color = this.getPrimaryColor()
|
||||||
this.chart.setOption(chartOptions)
|
this.chart.setOption(chartOptions)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user