bugfix: change colors and put lines in the front of the temp chart
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
97012256f6
commit
bd44c5608a
3 files changed
+14
-5
No files matched your search
@@ -49,7 +49,16 @@ export default {
|
||||
computed: {
|
||||
datasets: {
|
||||
get () {
|
||||
return this.$store.state.printer.tempHistory.datasets
|
||||
const datasets = this.$store.state.printer.tempHistory.datasets
|
||||
|
||||
return datasets.sort((a,b) => {
|
||||
if ('name' in a && 'name' in b) {
|
||||
if (a.name.endsWith("_target") > b.name.endsWith("_target")) return -1
|
||||
if (a.name.endsWith("_target") < b.name.endsWith("_target")) return 1
|
||||
}
|
||||
|
||||
return 0
|
||||
})
|
||||
}
|
||||
},
|
||||
maxTemp: {
|
||||
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
dataPoints:[],
|
||||
showInLegend: false,
|
||||
markerType: 'none',
|
||||
fillOpacity: .3,
|
||||
fillOpacity: .1,
|
||||
lineThickness: 0,
|
||||
toolTipContent: "{name}: {y}°C",
|
||||
color: masterDataset.color || '#666'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export const colorArray = [
|
||||
'#F44336',
|
||||
'#9C27B0',
|
||||
'#673AB7',
|
||||
'#8e379d',
|
||||
'#03DAC5',
|
||||
'#3F51B5',
|
||||
'#00BCD4',
|
||||
'#ffde03',
|
||||
'#009688',
|
||||
'#E91E63',
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user