EffectScatterView.js 738 字节
Newer Older
S
sushuang 已提交
1 2 3
import echarts from '../../echarts';
import SymbolDraw from '../helper/SymbolDraw';
import EffectSymbol from '../helper/EffectSymbol';
L
lang 已提交
4

S
sushuang 已提交
5
echarts.extendChartView({
L
lang 已提交
6

S
sushuang 已提交
7
    type: 'effectScatter',
L
lang 已提交
8

S
sushuang 已提交
9 10 11
    init: function () {
        this._symbolDraw = new SymbolDraw(EffectSymbol);
    },
L
lang 已提交
12

S
sushuang 已提交
13 14 15 16 17 18
    render: function (seriesModel, ecModel, api) {
        var data = seriesModel.getData();
        var effectSymbolDraw = this._symbolDraw;
        effectSymbolDraw.updateData(data);
        this.group.add(effectSymbolDraw.group);
    },
L
lang 已提交
19

S
sushuang 已提交
20 21 22
    updateLayout: function () {
        this._symbolDraw.updateLayout();
    },
L
lang 已提交
23

S
sushuang 已提交
24 25 26
    remove: function (ecModel, api) {
        this._symbolDraw && this._symbolDraw.remove(api);
    },
L
lang 已提交
27

S
sushuang 已提交
28 29
    dispose: function () {}
});