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:
Stefan Dej committed 2021-01-19 23:08:09 +01:00
1 parent 97012256f6
commit bd44c5608a
3 files changed
+14 -5

No files matched your search

+10 -1
View File
@@ -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: {
+1 -1
View File
@@ -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'
+3 -3
View File
@@ -1,9 +1,9 @@
export const colorArray = [
'#F44336',
'#9C27B0',
'#673AB7',
'#8e379d',
'#03DAC5',
'#3F51B5',
'#00BCD4',
'#ffde03',
'#009688',
'#E91E63',
]