Skip to content

Commit

Permalink
fix: force merge strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <[email protected]>
  • Loading branch information
cadriel committed Feb 12, 2021
1 parent 6802066 commit 2eb1363
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/components/widgets/EChartsWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ECharts
ref="chart"
:option="options"
:setOptionOps="{ notMerge: true }"
:setOptionOps="{ notMerge: false }"
:initOpts="{ renderer: 'svg' }"
:events="[
['legendselectchanged', handleLegendSelectChange ],
Expand Down Expand Up @@ -39,19 +39,18 @@ export default class EChartsWidget extends Vue {
if (ref) return ref.inst as ECharts
}
// @Watch('chartData')
// onDataChange (data: any) {
// if (this.chart && !this.loading) {
// this.chart.setOption({
// dataset: {
// source: data
// }
// })
// }
// }
@Watch('chartData')
onDataChange (data: any) {
if (this.chart && !this.loading) {
this.chart.setOption({
dataset: {
source: data
}
})
}
}
mounted () {
console.log('this.chartData', this.chartData)
this.init()
this.loading = false
}
Expand Down

0 comments on commit 2eb1363

Please sign in to comment.