Skip to content

Commit

Permalink
Fix Z-Wave device network & Adjust to echarts API changes
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Mar 14, 2024
1 parent acd6208 commit d19a99c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="network-fit">
<chart :options="finalOptions" :theme="$f7.data.themeOptions.dark === 'dark' ? 'dark' : undefined" autoresize />
<chart :option="finalOptions" :theme="$f7.data.themeOptions.dark === 'dark' ? 'dark' : undefined" autoresize />
</div>
</template>

Expand All @@ -22,8 +22,6 @@
<script>
// import ECharts modules manually to reduce bundle size
import 'echarts/lib/component/tooltip'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { GraphChart } from 'echarts/charts'
Expand All @@ -46,7 +44,8 @@ export default {
tooltip: {
formatter: '{b}: {c}',
confine: true,
position: [10, 10]
x: 10,
y: 10
},
backgroundColor: (this.$f7.data.themeOptions.dark === 'dark') ? '#121212' : undefined,
series: this.series
Expand Down Expand Up @@ -81,15 +80,15 @@ export default {
// color: 'blue'
// },
roam: true,
focusNodeAdjacency: true,
lineStyle: {
normal: {
width: 1,
curveness: 0.3,
opacity: 0.7
},
emphasis: {
width: 6
width: 6,
focus: 'adjacency'
}
},
symbolSize: 28,
Expand Down

0 comments on commit d19a99c

Please sign in to comment.