forked from fanruan/demo-show-charts
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.
28 lines
635 B
28 lines
635 B
7 years ago
|
demoWrapper = ExtendedChart.extend({
|
||
|
|
||
|
_init: function (dom, option) {
|
||
|
var chart = echarts.init(dom);
|
||
7 years ago
|
//绑定点击触发超链函数
|
||
|
chart.on('click', this.getLinkFun());
|
||
7 years ago
|
chart.setOption(option);
|
||
|
return chart;
|
||
|
},
|
||
|
|
||
|
_refresh: function (chart, option) {
|
||
|
chart.setOption(option);
|
||
|
},
|
||
|
|
||
7 years ago
|
_resize: function (chart) {
|
||
|
chart.resize();
|
||
|
},
|
||
|
|
||
|
_exportInit:function (dom, option) {
|
||
|
option.animation = false;
|
||
|
return this._init(dom, option);
|
||
|
},
|
||
|
|
||
|
_exportImage: function (chart) {
|
||
|
return chart.getConnectedDataURL({type: 'png'})
|
||
|
}
|
||
|
|
||
7 years ago
|
});
|