Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/components/Log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
</v-layout>
</v-card-title>
<v-sheet color="transparent" class="kw-chart-sheet">
<v-sparkline :value="kWChartValues" :gradient="['#1feaea', '#ffd200', '#f72047']"
stroke-linecap="round" smooth>
<template v-slot:label="item">{{ item.value }}</template>
<v-sparkline :value="kWChartValues" :gradient="['#1feaea', '#ffd200', '#f72047']" :show-labels=true
stroke-linecap="round" smooth :color="sparklinecolor">
</v-sparkline>
</v-sheet>
<v-container>
Expand Down Expand Up @@ -112,6 +111,7 @@

<script>
import { Line } from 'vue-chartjs';
import storage from '../utils/storage';

export default {
data: () => ({
Expand Down Expand Up @@ -277,6 +277,13 @@
return avgValues.reverse();

},
sparklinecolor() {
if(storage.getValue('darkMode', false) == true) {
return "white";
}
else
return "black";
},
chartData() {
const self = this;
const stats = [...self.log.stats].sort((a, b) => a.timestamp - b.timestamp);
Expand Down