{"size": 30625, "ext": "js", "max_stars_repo_path": "src/ex/migration.js", "max_stars_repo_name": "seeArmy/web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ex/migration.js", "max_issues_repo_name": "seeArmy/web", "max_issues_repo_issues_event_min_datetime": "2021-03-09T16:27:43.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T20:07:02.000Z", "max_forks_repo_path": "src/ex/migration.js", "max_forks_repo_name": "seeArmy/web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 42.7723463687, "max_line_length": 110, "alphanum_fraction": 0.3446530612}
/* eslint-disable no-new */
/* eslint-disable no-unused-vars */
var darwChart = (function () {
    return {
        init: function (chartSet) {
            var _this = this;
            var width = $(window).width();
            var height = $(window).height();
            $('#' + chartSet.ele).css({
                'width': width,
                'height': height
            });
            var addressData = _this.getLegalAddress(chartSet.lineData, chartSet.pointData, _this.geoCoordMap);
            chartSet["lineData"] = addressData["lineData"];
            chartSet["pointData"] = addressData["pointData"];
            _this.configCharts();
            _this.drawMigration(chartSet, _this.geoCoordMap);
        },
        configCharts: function () {
            require.config({
                paths: {
                    echarts: ctx + '/static/lib/echarts/js'
                }
            });
        },
        drawMigration: function (chartSet, geoCoordMap) {
            require(['echarts', 'echarts/chart/map'], function (ec) {
                var myChart = ec.init(document.getElementById(chartSet.ele), 'macarons');
                myChart.clear();
                window.onresize = function () {
                    var width = $(window).width();
                    var height = $(window).height();
                    $('#' + chartSet.ele).css({
                        'width': width,
                        'height': height
                    });
                    myChart.resize();
                };
                myChart.showLoading({
                    text: '正在努力的加载数据中...',
                    effect: 'bubble',
                    textStyle: {
                        fontSize: 22
                    }
                });
                var option = {
                    backgroundColor: '#1b1b1b',
                    color: ['gold', 'aqua', 'lime'],
                    title: {
                        text: '',
                        // subtext:'数据纯属虚构',
                        x: '',
                        textStyle: {
                            color: '#fff'
                        }
                    },
                    tooltip: {
                        trigger: 'item',
                        formatter: function (params) {
                            if (typeof (params.value) === "string" && params.value) {
                                return params.name + '<br>' + '货量：' + params.value;
                            } else {
                                return params.name;
                            }
                        }
                    },
                    toolbox: {
                        show: false,
                        orient: 'vertical',
                        x: 'right',
                        y: 'center',
                        feature: {
                            saveAsImage: {show: true}
                        }
                    },
                    series: [
                        {
                            name: '全国',
                            type: 'map',
                            roam: false,
                            hoverable: false,
                            mapType: 'china',
                            itemStyle: {
                                normal: {
                                    borderColor: 'rgba(100,149,237,1)',
                                    borderWidth: 0.5,
                                    areaStyle: {
                                        color: '#1b1b1b'
                                    },
                                    label: {
                                        show: true,
                                        textStyle: {
                                            color: "#f2f2f2"
                                        }
                                    }
                                }
                            },
                            data: [
                                {name: '北京'},
                                {name: '天津'},
                                {name: '上海'},
                                {name: '重庆'},
                                {name: '河北'},
                                {name: '河南'},
                                {name: '云南'},
                                {name: '辽宁'},
                                {name: '黑龙江'},
                                {name: '湖南'},
                                {name: '安徽'},
                                {name: '山东'},
                                {name: '新疆'},
                                {name: '江苏'},
                                {name: '浙江'},
                                {name: '江西'},
                                {name: '湖北'},
                                {name: '广西'},
                                {name: '甘肃'},
                                {name: '山西'},
                                {name: '内蒙古'},
                                {name: '陕西'},
                                {name: '吉林'},
                                {name: '福建'},
                                {name: '贵州'},
                                {name: '广东'},
                                {name: '青海'},
                                {name: '西藏'},
                                {name: '四川'},
                                {name: '宁夏'},
                                {name: '海南'},
                                {name: '台湾'},
                                {name: '香港'},
                                {name: '澳门'}
                            ],
                            geoCoord: geoCoordMap
                        },
                        {
                            name: '货量数据',
                            type: 'map',
                            mapType: 'china',
                            data: [],
                            hoverable: false,
                            itemStyle: {},
                            markLine: {
                                smooth: true,
                                effect: {
                                    show: true,
                                    scaleSize: 1,
                                    period: 30,
                                    color: '#fff',
                                    shadowBlur: 10
                                },
                                itemStyle: {
                                    normal: {
                                        borderWidth: 1,
                                        lineStyle: {
                                            type: 'solid',
                                            shadowBlur: 10
                                        },
                                        label: {
                                            show: true,
                                            textStyle: {
//                        color: '#f2f2f2'
                                            },
                                            formatter: function (params) {
                                                return '';
                                            }
                                        }
                                    }
                                },
                                data: chartSet.lineData
                            },
                            mapLocation: {x: 'left', y: 'center'},
                            markPoint: {
                                symbol: 'emptyCircle',
                                symbolSize: function (v) {
//                      return 10 + v/100000;
                                    return 1
                                },
                                effect: {
                                    show: true,
                                    shadowBlur: 0
                                },
                                itemStyle: {
                                    normal: {
                                        label: {
                                            show: false,
                                            textStyle: {
//                        color: '#f2f2f2'
                                            },
                                            formatter: function (params) {
                                                return params.name;
                                            }
                                        }
                                    },
                                    emphasis: {
                                        label: {position: 'top'}
                                    }
                                },
                                data: chartSet.pointData
                            }
                        }
                    ]
                };
                myChart.hideLoading();
                myChart.setOption(option);
            });
        },
        geoCoordMap: {
            '北京': [116.395645, 39.929986],
            '天津': [117.210813, 39.14393],
            '石家庄': [114.522082, 38.048958],
            '唐山': [118.183451, 39.650531],
            '秦皇岛': [119.604368, 39.945462],
            '邯郸': [114.482694, 36.609308],
            '邢台': [114.520487, 37.069531],
            '保定': [115.49481, 38.886565],
            '张家口': [114.893782, 40.811188],
            '承德': [117.933822, 40.992521],
            '沧州': [116.863806, 38.297615],
            '廊坊': [116.703602, 39.518611],
            '衡水': [115.686229, 37.746929],
            '太原': [112.550864, 37.890277],
            '大同': [113.290509, 40.113744],
            '阳泉': [113.569238, 37.869529],
            '长治': [113.120292, 36.201664],
            '晋城': [112.867333, 35.499834],
            '朔州': [112.479928, 39.337672],
            '晋中': [112.738514, 37.693362],
            '运城': [111.006854, 35.038859],
            '忻州': [112.727939, 38.461031],
            '临汾': [111.538788, 36.099745],
            '吕梁': [111.143157, 37.527316],
            '呼和浩特': [111.660351, 40.828319],
            '包头': [109.846239, 40.647119],
            '乌海': [106.831999, 39.683177],
            '赤峰': [118.930761, 42.297112],
            '通辽': [122.260363, 43.633756],
            '鄂尔多斯': [109.993706, 39.81649],
            '呼伦贝尔': [119.760822, 49.201636],
            '邵阳': [113.112846, 41.022363],
            '巴彦淖尔': [107.423807, 40.76918],
            '兴安盟': [122.048167, 46.083757],
            '锡林郭勒': [116.02734, 43.939705],
            '阿拉善': [105.695683, 38.843075],
            '乌兰察布': [113.112846, 41.022363],
            '沈阳': [123.432791, 41.808645],
            '大连': [121.593478, 38.94871],
            '鞍山': [123.007763, 41.118744],
            '抚顺': [123.92982, 41.877304],
            '本溪': [123.778062, 41.325838],
            '丹东': [124.338543, 40.129023],
            '锦州': [121.147749, 41.130879],
            '营口': [122.233391, 40.668651],
            '阜新': [121.660822, 42.01925],
            '辽阳': [123.172451, 41.273339],
            '盘锦': [122.073228, 41.141248],
            '铁岭': [123.85485, 42.299757],
            '朝阳': [120.446163, 41.571828],
            '葫芦岛': [120.860758, 40.74303],
            '长春': [125.313642, 43.898338],
            '吉林': [126.564544, 43.871988],
            '四平': [124.391382, 43.175525],
            '辽源': [125.133686, 42.923303],
            '通化': [125.94265, 41.736397],
            '松原': [124.832995, 45.136049],
            '白山': [126.435798, 41.945859],
            '白城': [122.840777, 45.621086],
            '延边': [129.485902, 42.896414],
            '哈尔滨': [126.657717, 45.773225],
            '齐齐哈尔': [123.987289, 47.3477],
            '鸡西': [130.941767, 45.32154],
            '鹤岗': [130.292472, 47.338666],
            '双鸭山': [131.171402, 46.655102],
            '大庆': [125.02184, 46.596709],
            '伊春': [128.910766, 47.734685],
            '佳木斯': [130.284735, 46.81378],
            '牡丹江': [129.608035, 44.588521],
            '七台河': [131.019048, 45.775005],
            '黑河': [127.50083, 50.25069],
            '绥化': [126.989095, 46.646064],
            '大兴安岭': [124.196104, 51.991789],
            '上海': [121.487899, 31.249162],
            '南京': [118.778074, 32.057236],
            '无锡': [120.305456, 31.570037],
            '徐州': [117.188107, 34.271553],
            '常州': [119.981861, 31.771397],
            '苏州': [120.619907, 31.317987],
            '南通': [120.873801, 32.014665],
            '连云港': [119.173872, 34.601549],
            '淮安': [119.030186, 33.606513],
            '盐城': [120.148872, 33.379862],
            '扬州': [119.427778, 32.408505],
            '泰州': [119.919606, 32.476053],
            '镇江': [119.455835, 32.204409],
            '宿迁': [118.296893, 33.95205],
            '杭州': [120.219375, 30.259244],
            '宁波': [121.579006, 29.885259],
            '温州': [120.690635, 28.002838],
            '嘉兴': [120.760428, 30.773992],
            '湖州': [120.137243, 30.877925],
            '绍兴': [120.592467, 30.002365],
            '金华': [119.652576, 29.102899],
            '衢州': [118.875842, 28.95691],
            '舟山': [122.169872, 30.03601],
            '台州': [121.440613, 28.668283],
            '合肥': [117.282699, 31.866942],
            '芜湖': [118.384108, 31.36602],
            '蚌埠': [117.35708, 32.929499],
            '丽水': [119.929576, 28.4563],
            '淮南': [117.018639, 32.642812],
            '马鞍山': [118.515882, 31.688528],
            '淮北': [116.791447, 33.960023],
            '铜陵': [117.819429, 30.94093],
            '安庆': [117.058739, 30.537898],
            '黄山': [118.29357, 29.734435],
            '滁州': [118.32457, 32.317351],
            '宿州': [116.988692, 33.636772],
            '阜阳': [115.820932, 32.901211],
            '六安': [116.505253, 31.755558],
            '亳州': [115.787928, 33.871211],
            '池州': [117.494477, 30.660019],
            '宣城': [118.752096, 30.951642],
            '福州': [119.330221, 26.047125],
            '厦门': [118.103886, 24.489231],
            '莆田': [119.077731, 25.44845],
            '三明': [117.642194, 26.270835],
            '泉州': [118.600362, 24.901652],
            '漳州': [117.676205, 24.517065],
            '南平': [118.181883, 26.643626],
            '龙岩': [117.017997, 25.078685],
            '宁德': [119.542082, 26.656527],
            '南昌': [115.893528, 28.689578],
            '景德镇': [117.186523, 29.303563],
            '萍乡': [113.859917, 27.639544],
            '九江': [115.999848, 29.71964],
            '新余': [114.947117, 27.822322],
            '鹰潭': [117.03545, 28.24131],
            '吉安': [114.992039, 27.113848],
            '赣州': [114.935909, 25.845296],
            '宜春': [114.400039, 27.81113],
            '抚州': [116.360919, 27.954545],
            '上饶': [117.955464, 28.457623],
            '济南': [117.024967, 36.682785],
            '青岛': [120.384428, 36.105215],
            '淄博': [118.059134, 36.804685],
            '枣庄': [117.279305, 34.807883],
            '东营': [118.583926, 37.487121],
            '烟台': [121.309555, 37.536562],
            '潍坊': [119.142634, 36.716115],
            '济宁': [116.600798, 35.402122],
            '泰安': [117.089415, 36.188078],
            '威海': [122.093958, 37.528787],
            '日照': [119.50718, 35.420225],
            '莱芜': [117.684667, 36.233654],
            '临沂': [118.340768, 35.072409],
            '德州': [116.328161, 37.460826],
            '聊城': [115.986869, 36.455829],
            '滨州': [117.968292, 37.405314],
            '菏泽': [115.46336, 35.26244],
            '郑州': [113.649644, 34.75661],
            '开封': [114.351642, 34.801854],
            '洛阳': [112.447525, 34.657368],
            '平顶山': [113.300849, 33.745301],
            '安阳': [114.351807, 36.110267],
            '鹤壁': [114.29777, 35.755426],
            '新乡': [113.91269, 35.307258],
            '焦作': [113.211836, 35.234608],
            '濮阳': [115.026627, 35.753298],
            '许昌': [113.835312, 34.02674],
            '漯河': [114.046061, 33.576279],
            '三门峡': [111.181262, 34.78332],
            '南阳': [112.542842, 33.01142],
            '信阳': [114.085491, 32.128582],
            '商丘': [115.641886, 34.438589],
            '周口': [114.654102, 33.623741],
            '驻马店': [114.049154, 32.983158],
            '济源': [112.405268, 35.105365],
            '武汉': [114.3162, 30.581084],
            '黄石': [115.050683, 30.216127],
            '十堰': [110.801229, 32.636994],
            '宜昌': [111.310981, 30.732758],
            '襄阳': [112.250093, 32.229169],
            '鄂州': [114.895594, 30.384439],
            '荆门': [112.21733, 31.042611],
            '孝感': [113.935734, 30.927955],
            '荆州': [112.241866, 30.332591],
            '黄冈': [114.906618, 30.446109],
            '咸宁': [114.300061, 29.880657],
            '随州': [113.379358, 31.717858],
            '恩施州': [109.491923, 30.285888],
            '仙桃': [113.387448, 30.293966],
            '潜江': [112.768768, 30.343116],
            '天门': [113.12623, 30.649047],
            '神农架': [110.487231, 31.595768],
            '长沙': [112.979353, 28.213478],
            '株洲': [113.131695, 27.827433],
            '湘潭': [112.935556, 27.835095],
            '衡阳': [112.583819, 26.898164],
            '岳阳': [113.146196, 29.378007],
            '常德': [111.653718, 29.012149],
            '张家界': [110.48162, 29.124889],
            '益阳': [112.366547, 28.588088],
            '郴州': [113.037704, 25.782264],
            '永州': [111.614648, 26.435972],
            '怀化': [109.986959, 27.557483],
            '娄底': [111.996396, 27.741073],
            '湘西': [109.745746, 28.317951],
            '广州': [113.30765, 23.120049],
            '韶关': [113.594461, 24.80296],
            '深圳': [114.025974, 22.546054],
            '珠海': [113.562447, 22.256915],
            '汕头': [116.72865, 23.383908],
            '佛山': [113.134026, 23.035095],
            '江门': [113.078125, 22.575117],
            '茂名': [110.931245, 21.668226],
            '湛江': [110.365067, 21.257463],
            '肇庆': [112.479653, 23.078663],
            '惠州': [114.410658, 23.11354],
            '梅州': [116.126403, 24.304571],
            '汕尾': [115.372924, 22.778731],
            '河源': [114.713721, 23.757251],
            '阳江': [111.97701, 21.871517],
            '清远': [113.040773, 23.698469],
            '东莞': [113.763434, 23.043024],
            '中山': [113.42206, 22.545178],
            '潮州': [116.630076, 23.661812],
            '揭阳': [116.379501, 23.547999],
            '云浮': [112.050946, 22.937976],
            '南宁': [108.297234, 22.806493],
            '柳州': [109.422402, 24.329053],
            '桂林': [110.26092, 25.262901],
            '梧州': [111.305472, 23.485395],
            '北海': [109.122628, 21.472718],
            '防城港': [108.351791, 21.617398],
            '钦州': [108.638798, 21.97335],
            '玉林': [110.151676, 22.643974],
            '百色': [106.631821, 23.901512],
            '贵港': [109.613708, 23.103373],
            '贺州': [111.552594, 24.411054],
            '河池': [108.069948, 24.699521],
            '来宾': [109.231817, 23.741166],
            '崇左': [107.357322, 22.415455],
            '海口': [110.330802, 20.022071],
            '三亚': [109.522771, 18.257776],
            '五指山': [109.51775, 18.831306],
            '琼海': [110.414359, 19.21483],
            '儋州': [109.413973, 19.571153],
            '文昌': [110.780909, 19.750947],
            '万宁': [110.292505, 18.839886],
            '东方': [108.85101, 18.998161],
            '定安': [110.32009, 19.490991],
            '屯昌': [110.063364, 19.347749],
            '澄迈': [109.996736, 19.693135],
            '临高': [109.724102, 19.805922],
            '白沙': [109.358586, 19.216056],
            '昌江': [109.0113, 19.222483],
            '乐东': [109.062698, 18.658614],
            '陵水': [109.948661, 18.575985],
            '保亭': [109.656113, 18.597592],
            '琼中': [109.861849, 19.039771],
            '三沙': [109.733755, 19.180501],
            '重庆': [106.530635, 29.544606],
            '成都': [104.067923, 30.679943],
            '攀枝花': [101.722423, 26.587571],
            '自贡': [104.776071, 29.359157],
            '泸州': [105.44397, 28.89593],
            '德阳': [104.402398, 31.13114],
            '绵阳': [104.705519, 31.504701],
            '广元': [105.819687, 32.44104],
            '遂宁': [105.564888, 30.557491],
            '内江': [105.073056, 29.599462],
            '乐山': [103.760824, 29.600958],
            '南充': [106.105554, 30.800965],
            '眉山': [103.84143, 30.061115],
            '宜宾': [104.633019, 28.769675],
            '广安': [106.63572, 30.463984],
            '达州': [107.494973, 31.214199],
            '雅安': [103.009356, 29.999716],
            '巴中': [106.757916, 31.869189],
            '资阳': [104.63593, 30.132191],
            '阿坝州': [102.228565, 31.905763],
            '甘孜州': [101.969232, 30.055144],
            '凉山': [102.259591, 27.892393],
            '贵阳': [106.709177, 26.629907],
            '六盘水': [104.852087, 26.591866],
            '安顺': [105.92827, 26.228595],
            '遵义': [106.93126, 27.699961],
            '毕节': [105.333323, 27.408562],
            '铜仁': [109.168558, 27.674903],
            '黔西南': [104.900558, 25.095148],
            '黔东南': [107.985353, 26.583992],
            '黔南': [107.523205, 26.264536],
            '昆明': [102.714601, 25.049153],
            '曲靖': [103.782539, 25.520758],
            '玉溪': [102.545068, 24.370447],
            '保山': [99.177996, 25.120489],
            '昭通': [103.725021, 27.340633],
            '丽江': [100.229628, 26.875351],
            '普洱': [100.980058, 22.788778],
            '临沧': [100.092613, 23.887806],
            '楚雄州': [101.529382, 25.066356],
            '红河州': [103.384065, 23.367718],
            '文山州': [104.246294, 23.374087],
            '西双版纳': [100.803038, 22.009433],
            '大理州': [100.223675, 25.5969],
            '德宏州': [98.589434, 24.44124],
            '怒江州': [98.859932, 25.860677],
            '迪庆州': [99.713682, 27.831029],
            '拉萨': [91.111891, 29.662557],
            '山南地区': [91.750644, 29.229027],
            '昌都地区': [97.185582, 31.140576],
            '日喀则': [88.956063, 29.26816],
            '那曲地区': [92.067018, 31.48068],
            '阿里地区': [81.107669, 30.404557],
            '林芝地区': [94.349985, 29.666941],
            '西安': [108.953098, 34.2778],
            '铜川': [108.968067, 34.908368],
            '宝鸡': [107.170645, 34.364081],
            '咸阳': [108.707509, 34.345373],
            '延安': [109.50051, 36.60332],
            '汉中': [107.045478, 33.081569],
            '榆林': [109.745926, 38.279439],
            '安康': [109.038045, 32.70437],
            '商洛': [109.934208, 33.873907],
            '兰州': [103.823305, 36.064226],
            '渭南': [109.483933, 34.502358],
            '嘉峪关': [98.281635, 39.802397],
            '金昌': [102.208126, 38.516072],
            '白银': [104.171241, 36.546682],
            '天水': [105.736932, 34.584319],
            '武威': [102.640147, 37.933172],
            '张掖': [100.459892, 38.93932],
            '平凉': [106.688911, 35.55011],
            '酒泉': [98.508415, 39.741474],
            '庆阳': [107.644227, 35.726801],
            '定西': [104.626638, 35.586056],
            '陇南': [104.934573, 33.39448],
            '临夏州': [103.215249, 35.598514],
            '甘南州': [102.917442, 34.992211],
            '西宁': [101.767921, 36.640739],
            '海东': [102.085207, 36.51761],
            '海北州': [100.879802, 36.960654],
            '黄南州': [102.0076, 35.522852],
            '海南州': [100.624066, 36.284364],
            '果洛州': [100.223723, 34.480485],
            '玉树州': [97.013316, 33.00624],
            '海西州': [97.342625, 37.373799],
            '石嘴山': [106.379337, 39.020223],
            '吴忠': [106.208254, 37.993561],
            '银川': [106.206479, 38.502621],
            '固原': [106.285268, 36.021523],
            '中卫': [105.196754, 37.521124],
            '乌鲁木齐': [87.564988, 43.84038],
            '克拉玛依': [84.88118, 45.594331],
            '吐鲁番': [89.181595, 42.96047],
            '哈密地区': [93.528355, 42.858596],
            '昌吉州': [87.296038, 44.007058],
            '巴州': [86.121688, 41.771362],
            '博州': [82.052436, 44.913651],
            '阿克苏': [80.269846, 41.171731],
            '克州': [76.137564, 39.750346],
            '喀什地区': [75.992973, 39.470627],
            '和田地区': [79.930239, 37.116774],
            '伊犁': [81.297854, 43.922248],
            '塔城地区': [82.974881, 46.758684],
            '阿勒泰': [88.137915, 47.839744],
            '石河子': [86.041865, 44.308259],
            '阿拉尔': [81.291737, 40.61568],
            '图木舒克': [79.198155, 39.889223],
            '五家渠': [87.565449, 44.368899],
            '香港': [114.186124, 22.293586],
            '澳门': [113.557519, 22.204118]
        },
        getLegalAddress: function (lineData, pointData, dataSource) {
            var tempLineData = [];
            var tempPointData = [];
            $.each(lineData, function (i, v) {
                var startAddress = v[0]["name"];
                var endAddress = v[1]["name"];
                if (!!dataSource[startAddress] && !!dataSource[endAddress]) {
                    tempLineData.push(v);
                    tempPointData.push(pointData[i]);
                }
            });
            return {
                lineData: tempLineData,
                pointData: tempPointData
            }
        },
        drawLineBar: function (option) {
            var chartOption = option;
            require(['echarts', 'echarts/chart/line', 'echarts/chart/bar'], function (ec) {
                var myChart = ec.init(document.getElementById(chartOption.chartId), 'macarons');
                myChart.showLoading({
                    text: '正在努力的加载数据中...',
                    effect: 'bubble',
                    textStyle: {
                        fontSize: 22
                    }
                });
                var option = {
                    title: {
                        text: chartOption.titleText,
                        subtext: chartOption.titleSubtext,
                        x: 'left',
                        textStyle:{
                            color: '#fff',
                            fontSize:'16px'
                        }
                    },
//                    tooltip: {
//                        trigger: 'item',
//                        formatter: function (params) {
//                            if (!isNaN(Number(params.value))) {
//                                return params.name + '<br>' + '货量：' + params.value + '吨';
//                            } else {
//                                return params.name;
//                            }
//                        }
//                    },
                    legend: {
                        data: chartOption.legend
                    },
                    toolbox: {
                        show: false,
                        feature: {
                            mark: { show: false },
                            dataView: { show: false, readOnly: false },
                            magicType: { show: true, type: ['line', 'bar'] },
                            restore: { show: true },
                            saveAsImage: { show: true }
                        }
                    },
                    calculable: true,
                    grid: {
                        borderWidth: 0,
                        y: 70,
                        y2: 0,
                        x: 0,
                        x2: 0
                    },
                    xAxis: [
                        {
                            type: 'category',
                            name: chartOption.chartUnit,
                            data: chartOption.chartXaxis,
                            axisLabel: {
                                show: true,
                                interval: 'auto',    // {number}
                                //rotate: 45,
                                //margin: 8,
                                formatter: '{value}'
                            },
                            show: false
                        }
                    ],
                    yAxis: [
                        {
                            type: 'value',
                            name: chartOption.chartName,
                            axisLabel: {
                                formatter: '{value}'
                            },
                            show: false
                        }
                    ],
                    series: [
                        {
                            name: chartOption.chartName,
                            type: chartOption.chartType,
                            data: chartOption.chartSeries,
                            itemStyle: {
                                normal: {
                                    color: function (params) {
                                        // build a color map as your need.
                                        var colorList = [
                                            '#C1232B', '#B5C334', '#FCCE10', '#E87C25', '#27727B',
                                            '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD',
                                            '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'
                                        ];
                                        return colorList[params.dataIndex]
                                    },
                                    label: {
                                        show: true,
                                        position: 'top',
                                        formatter: function (params) {
                                            return params.name+'\n'+params.value;
                                        }
                                    }
                                }
                            }
                            //markPoint: {
                            //    data: [
                            //        { type: 'max', name: '最大值' },
                            //        { type: 'min', name: '最小值' }
                            //    ]
                            //},
                            //markLine: {
                            //    data: [
                            //        { type: 'average', name: '平均值' }
                            //    ]
                            //}
                        },
                    ]
                };
                chartOption.loadDone = true;
                if (chartOption.loadDone) {
                    myChart.hideLoading();
                    myChart.setOption(option);
                    chartOption.loadDone = false;
                }
            });
        }
    }
})();
