Skip to content

Commit

Permalink
Z-Wave network map: Fix ECharts deprecation warnings (#2774)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Sep 30, 2024
1 parent 1ea84a1 commit 91c7c16
Showing 1 changed file with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { GraphChart } from 'echarts/charts'
import { ToolboxComponent } from 'echarts/components'
import { TooltipComponent, ToolboxComponent } from 'echarts/components'
import VChart from 'vue-echarts'
use([CanvasRenderer, GraphChart, ToolboxComponent])
use([CanvasRenderer, GraphChart, TooltipComponent, ToolboxComponent])
import ThingStatus from '@/components/thing/thing-status-mixin'
Expand Down Expand Up @@ -67,9 +67,7 @@ export default {
data: [],
links: [],
label: {
textStyle: {
fontSize: 16
},
fontSize: 16,
show: true
},
// label: {
Expand All @@ -81,21 +79,19 @@ export default {
// },
roam: true,
lineStyle: {
normal: {
width: 1,
curveness: 0.3,
opacity: 0.7
},
emphasis: {
width: 1,
curveness: 0.3,
opacity: 0.7
},
emphasis: {
lineStyle: {
width: 6,
focus: 'adjacency'
}
},
symbolSize: 28,
itemStyle: {
normal: {
color: 'blue'
}
color: 'blue'
}
}
return this.$oh.api.get('/rest/things').then((data) => {
Expand Down

0 comments on commit 91c7c16

Please sign in to comment.