How to use the registerTheme function from echarts
Find comprehensive JavaScript echarts.registerTheme code examples handpicked from public code repositorys.
GitHub: wanzizi/BIsystem
155 156 157 158 159 160 161 162 163 164
if (this.page.theme.list && this.page.theme.list.length) { this.page.theme.list.map((item, index) => { if (item.id === this.page.params.theme) { let json = JSON.parse(item.json) theme = item.name echarts.registerTheme(theme, json) } }) } var myChart = echarts.init(this.$refs[item1.id][0], theme)
26
44
6
+ 3 other calls in file
echarts.init is the most popular function in echarts (114 examples)