diff --git a/components/Energy/TimeOfDay.vue b/components/Energy/TimeOfDay.vue
index 81c919ce..17bcb14c 100644
--- a/components/Energy/TimeOfDay.vue
+++ b/components/Energy/TimeOfDay.vue
@@ -254,17 +254,21 @@ export default {
},
chartHeight() {
- return 688
+ // return 688
+ return 400
},
chartHeightPrice() {
- return 392
+ // return 392
+ return 200
},
chartHeightPositiveLogPrice() {
- return 150
+ // return 150
+ return 100
},
chartHeightNegativeLogPrice() {
- return 150
+ // return 150
+ return 100
},
domainsWithColour() {
diff --git a/components/Energy/TimeOfDaySection.vue b/components/Energy/TimeOfDaySection.vue
index d0240364..3e0d5501 100644
--- a/components/Energy/TimeOfDaySection.vue
+++ b/components/Energy/TimeOfDaySection.vue
@@ -41,16 +41,18 @@
/>
+
+
+ style="display: flex; justify-content: center; flex-wrap: wrap; gap: 5px;">
selectedToD = ds">
+ class="sparkline-button"
+ @click="() => toggleSelected(ds)">
+ d.id === id)
+ return find
+ },
+
+ toggleSelected(ds) {
+ const find = this.selectedToDs.find(d => d.id === ds.id)
+ if (find) {
+ this.selectedToDs = this.selectedToDs.filter(d => d.id !== ds.id)
+ } else {
+ this.selectedToDs.push(ds)
+ }
}
}
}
diff --git a/components/Energy/TimeOfDaySparkline.vue b/components/Energy/TimeOfDaySparkline.vue
index 5a60b6db..e3855ff4 100644
--- a/components/Energy/TimeOfDaySparkline.vue
+++ b/components/Energy/TimeOfDaySparkline.vue
@@ -1,12 +1,15 @@
+ class="vis-wrapper sparkline-button"
+ :class=" { selected: selected }"
+ >
+ {{ title }}
-
-
+ :title="title" /> -->
+
@@ -189,6 +192,10 @@ export default {
todayKey: {
type: String,
default: ''
+ },
+ selected: {
+ type: Boolean,
+ default: false
}
},
@@ -340,11 +347,30 @@ export default {
@import '~/assets/scss/variables.scss';
$border-radius: 0.4rem;
+// .sparkline-button {
+// cursor: pointer;
+// border-radius: $border-radius;
+// background-color: rgba(255,255,255, 0.3);
+
+// &:hover {
+// background-color: rgba(255,255,255, 0.8);
+// }
+// }
+
.sparkline-button {
cursor: pointer;
- // border: 1px solid #ccc;
border-radius: $border-radius;
background-color: rgba(255,255,255, 0.3);
+ padding: 0.3rem 0.6rem;
+
+ .selected {
+ background-color: $opennem-link-color;
+ color: #fff;
+
+ &:hover {
+ background-color: $opennem-link-color-dark;
+ }
+ }
&:hover {
background-color: rgba(255,255,255, 0.8);
@@ -352,7 +378,7 @@ $border-radius: 0.4rem;
}
header {
- padding-left: 0.3rem;
+ // padding-left: 0.3rem;
}
.sparkline {