How to use the registerTheme function from echarts

Find comprehensive JavaScript echarts.registerTheme code examples handpicked from public code repositorys.

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)
fork icon26
star icon44
watch icon6

+ 3 other calls in file