You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
466 B
15 lines
466 B
/** |
|
* Created by richie on 16/1/29. |
|
*/ |
|
Van.FRChartBridge.EChartsFactory = Van.FRChartBridge.AbstractChart.extend({ |
|
|
|
_init: function (dom, chartAttr) { |
|
if (chartAttr.theme !== 'default') { |
|
FR.$defaultImport('/com/fr/solution/plugin/chart/echarts/common/web/theme/' + chartAttr.theme + '.js'); |
|
} |
|
var chart = echarts.init(dom, EChartsTheme[chartAttr.theme]); |
|
chart.setOption(chartAttr); |
|
return chart; |
|
} |
|
|
|
}); |