import Magix from 'magix' import View from 'dmp-new/view' Magix.applyStyle('@./trend.less') export default View.extend({ tmpl: '@trend.html', init (options) { this.options = options }, async render () { const chartOptions = this.formatChartOptions(26) const { trendData, key, statusMap } = this.options this.updater.digest({ chartOptions, statusMap, key, chartData: trendData }) }, formatChartOptions (id) { const { Numeral } = this.updater.get() const chartOptions = this.getChartOptions(id) chartOptions.coord.yAxis[0].label.format = (e) => { return Numeral(e).format('0,0') } chartOptions.tips.content = (data, e) => { return `