How to use the util function from echarts

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

84
85
86
87
88
89
90
91
92
93
// Not support IE8
amapRoot.classList.add('ec-extension-amap');
root.appendChild(amapRoot);

var options = amapModel.get() || {};
options = amapModel.__options = echarts.util.clone(options);
var amap = amapModel.__amap = new AMap.Map(amapRoot, options);

var layer = amapModel.__layer = new AMap.CustomLayer(viewportRoot);
layer.setMap(amap);
fork icon35
star icon59
watch icon5

+ 3 other calls in file

64
65
66
67
68
69
70
71
72
73

group.add(text);

data.setItemGraphicEl(dataIdx, text);
echarts.graphic.setHoverStyle(
    text, echarts.util.extend(
        emphasisTextStyleModel.getItemStyle(),
        {
            font: getFont(emphasisTextStyleModel, textStyleModel)
        }
fork icon729
star icon0
watch icon2

+ 11 other calls in file

44
45
46
47
48
49
50
51
52
53
glob('../*.js', function (err, themePathList) {
    themePathList.forEach(function (themePath) {
        var themeName = path.basename(themePath, '.js');
        var canvasList = [];
        require(themePath);
        echarts.util.each(options, function (option) {
            var canvas = createCanvas();
            var chart = echarts.init(canvas, themeName);
            var optionNeedFix = option;
            if (option.options) {
fork icon619
star icon0
watch icon73