function getOptions(e){function a(e){for(var a,t=["北京","天津","河北","河北","山西","内蒙古","辽宁","吉林","黑龙江","上海","江苏"],l=2002;2007>=l;l++){var r=0,o=0;a=e[l];for(var n=0,i=a.length;i>n;n++)r=Math.max(r,a[n]),o+=a[n],e[l][n]={name:t[n],value:a[n]};e[l+"max"]=100*Math.floor(r/100),e[l+"sum"]=o}return e}var t=e?e.theme.seriesCnt:4,l=["周一","周二","周三","周四","周五","周六","周日"],r=l.length,o=function(){for(var e=[],a=0;t>a;++a)e.push("第"+(a+1)+"组");return e},n={data:o(),right:0},i=function(e){var a=[];if("scatter"===e)var l=32;else var l=r;for(var o=0;t>o;++o){for(var n=[],i=0;l>i;++i){if("scatter"===e)var m=[Math.floor((600*Math.random()+400)*(t-o)/t),Math.floor((600*Math.random()+400)*(t-o)/t)];else var m=Math.floor((600*Math.random()+400)*(t-o)/t);n.push(m)}"radar"===e&&(n=[n]),a.push({type:e,data:n,name:"第"+(o+1)+"组",markPoint:"line"===e||"bar"===e||"scatter"===e?{data:[{name:"最高",type:"max"}]}:{}})}return a},m=function(e){for(var a=i(e),t=0;tl;++l)a.push({name:n.data[l],value:Math.floor((800*Math.random()+200)*(t-l)/t)});return{type:e,data:a}},u=function(){for(var e=[],a=0;aa;++a)e.push({type:"scatter",coordinateSystem:"geo",name:"第"+(a+1)+"组",symbolSize:function(e){return e[2] },data:function(){for(var e=[[121.15,31.89],[109.781327,39.608266],[120.38,37.35],[122.207216,29.985295],[123.97,47.33],[120.13,33.38],[118.87,42.28],[120.33,36.07],[121.52,36.89],[102.188043,38.520089],[118.58,24.93],[120.53,36.86],[119.46,35.42],[119.97,35.88],[121.05,32.08],[91.11,29.97],[112.02,22.93],[116.1,24.55],[122.05,37.2],[121.48,31.22],[101.718637,26.582347],[122.1,37.5],[117.93,40.97],[118.1,24.46],[115.375279,22.786211],[116.63,23.68],[124.37,40.13],[121.1,31.45],[103.79,25.51],[121.39,37.52],[119.3,26.08],[121.979603,39.627114],[112.44,34.7],[113.16,27.83],[112.91,27.87],[113,28.21],[114.31,30.52],[125.03,46.58]],a=[],t=0;20>t;++t){var l=Math.floor(Math.random()*e.length);a.push(e[l].concat(Math.floor(20*Math.random())))}return a}()});return e}()},{title:{text:"地图视觉映射"},visualMap:{show:!0,min:0,max:1e3,right:0,top:"middle",text:["高","低"]},series:[{type:"map",map:"china",showLegendSymbol:!1,label:{normal:{show:!0}},data:[{name:"北京",value:980},{name:"天津",value:800},{name:"上海",value:900},{name:"重庆",value:860},{name:"河北",value:600},{name:"河南",value:650},{name:"云南",value:300},{name:"辽宁",value:200},{name:"黑龙江",value:220},{name:"湖南",value:630},{name:"安徽",value:570},{name:"山东",value:500},{name:"新疆",value:5},{name:"江苏",value:800},{name:"浙江",value:900},{name:"江西",value:500},{name:"湖北",value:500},{name:"广西",value:450},{name:"甘肃",value:100},{name:"山西",value:500},{name:"内蒙古",value:0},{name:"陕西",value:200},{name:"吉林",value:50},{name:"福建",value:500},{name:"贵州",value:500},{name:"广东",value:500},{name:"青海",value:50},{name:"西藏",value:100},{name:"四川",value:200},{name:"宁夏",value:300},{name:"海南",value:500},{name:"台湾",value:880},{name:"香港",value:900},{name:"澳门",value:800}]}]},{title:{text:"热力图"},xAxis:{type:"category",data:["12a","1a","2a","3a","4a","5a","6a","7a","8a","9a","10a","11a","12p"]},yAxis:{type:"category",data:["周六","周五","周四","周三","周二","周一","周日"]},visualMap:{min:1,max:10,calculable:!0},grid:{left:90,right:20,top:40,bottom:40},series:[{name:"热度",type:"heatmap",data:function(){var e=[[0,0,5],[0,1,1],[0,2,3],[0,3,2],[0,4,1],[0,5,4],[0,6,6],[0,7,6],[0,8,4],[0,9,7],[0,10,0],[0,11,2],[1,0,7],[1,1,0],[1,2,0],[1,3,0],[1,4,5],[1,5,7],[1,6,9],[1,7,4],[1,8,7],[1,9,9],[1,10,5],[1,11,2],[2,0,7],[2,1,6],[2,2,5],[2,3,5],[2,4,9],[2,5,8],[2,6,0],[2,7,0],[2,8,0],[2,9,4],[2,10,3],[2,11,2],[3,0,7],[3,1,3],[3,2,0],[3,3,0],[3,4,3],[3,5,0],[3,6,4],[3,7,5],[3,8,1],[3,9,3],[3,10,5],[3,11,4],[3,12,7],[4,0,6],[4,1,3],[4,2,6],[4,3,0],[4,4,5],[4,5,1],[4,6,0],[4,7,0],[4,8,5],[4,9,2],[4,10,4],[4,11,4],[5,0,2],[5,1,1],[5,2,0],[5,3,3],[5,4,8],[5,5,4],[5,6,6],[5,7,0],[5,8,2],[5,9,0],[5,10,4],[5,11,1],[6,0,1],[6,1,0],[6,2,8],[6,3,6],[6,4,2],[6,5,0],[6,6,0],[6,7,8],[6,8,5],[6,9,10],[6,10,1],[6,11,0]];return e.map(function(e){return[e[1],e[0],e[2]||"-"]})}(),label:{normal:{show:!0}}}]},{title:{text:"树图"},series:[{type:"treemap",label:{show:!0,formatter:"{b}"},roam:!1,data:function(){for(var e=[],a=0;t>a;++a){for(var l=[],r=0,o=0,n=Math.ceil(5*Math.random());n>o;++o){for(var i=[],m=0,s=0,u=Math.ceil(3*Math.random());u>s;++s){var d=Math.ceil(100*Math.random());i.push({value:d,name:a+1+"-"+(o+1)+"-"+(s+1),path:a+1+"/"+(a+1)+"-"+(o+1)+"/"+(a+1)+"-"+(o+1)+"-"+(s+1)}),m+=d}l.push({value:m,name:a+1+"-"+(o+1),path:a+1+"/"+(a+1)+"-"+(o+1),children:i}),r+=m}e.push({value:r,name:""+(a+1),path:""+(a+1),children:l})}return e}()}]}],y=0;y',compiled:function(){var e=this,a=$(this.$el);a.find("input").val(this.color),a.colorpicker().on("changeColor",function(){var t=a.find("input").val(),l=echarts.color.parse(t);l&&e.$set("color",t)}),e.$watch("color",function(e){a.colorpicker("setValue",e)})},props:{color:{twoWay:!0}}});Vue.component("color",VueColor);var VueColorList=Vue.extend({template:'
',props:{colors:{twoWay:!0}},methods:{addColor:function(){this.colors.push("#333333")},removeColor:function(){this.colors.pop()}}});Vue.component("color-list",VueColorList);var VueNumberConfig=Vue.extend({template:'
',props:{title:String,canDisable:{type:Boolean,"default":!1},value:{twoWay:!0},enabled:{twoWay:!0,"default":!0}}});Vue.component("config-number",VueNumberConfig);var VueColorConfig=Vue.extend({template:'
',props:{title:String,canDisable:{type:Boolean,"default":!1},color:{twoWay:!0},enabled:{twoWay:!0,"default":!0}}});Vue.component("config-color",VueColorConfig);var VueColorListConfig=Vue.extend({template:'
',props:{title:String,canDisable:{type:Boolean,"default":!1},colors:{twoWay:!0},enabled:{twoWay:!0,"default":!0}}});Vue.component("config-color-list",VueColorListConfig),function(){function e(e){try{var a=JSON.parse(e);if(void 0===a.themeName&&void 0===a.version)return alert("请使用本网站“导出配置”的 JSON 文件,而不是下载的主题文件。"),void 0;if(x.$set("themeName",a.themeName||"customed"),a.version0?alert("导入的主题版本较低,有"+t.length+"个属性未被设置,现已使用默认值。"):console.warn("导入的主题版本较低,可能有部分属性未生效。")}x.$set("theme",a.theme),x.axisSeperateSettingChanges()}catch(o){alert("非法 JSON 格式!请使用本网站导出的 *.json 文件。"),console.error(o)}}function a(e){function a(e){return x.theme.axisSeperateSetting||(e=0),{axisLine:{show:x.theme.axes[e].axisLineShow,lineStyle:{color:x.theme.axes[e].axisLineColor}},axisTick:{show:x.theme.axes[e].axisTickShow,lineStyle:{color:x.theme.axes[e].axisTickColor}},axisLabel:{show:x.theme.axes[e].axisLabelShow,textStyle:{color:x.theme.axes[e].axisLabelColor}},splitLine:{show:x.theme.axes[e].splitLineShow,lineStyle:{color:x.theme.axes[e].splitLineColor}},splitArea:{show:x.theme.axes[e].splitAreaShow,areaStyle:{color:x.theme.axes[e].splitAreaColor}}}}var t="path://M237.062,81.761L237.062,81.761c-12.144-14.24-25.701-20.1-40.68-19.072 c-10.843,0.747-20.938,5.154-30.257,13.127c-9.51-5.843-19.8-9.227-30.859-10.366c0.521-3.197,1.46-6.306,2.85-9.363 c3.458-7.038,8.907-12.741,16.331-17.296c-5.609-3.384-11.227-6.799-16.854-10.279c-16.257,8.104-25.06,20.601-26.463,38.417 c-7.599,1.705-14.685,4.486-21.247,8.437c-9.164-7.677-18.996-11.917-29.496-12.632c-14.819-0.998-28.467,4.787-40.938,18.827 C6.445,96.182,0,114.867,0,136.242c-0.007,6.371,0.674,12.646,2.053,18.738c4.593,22.785,15.398,41.367,32.558,55.344 c15.43,12.773,29.901,18.023,43.362,16.981c7.074-0.561,13.624-3.977,19.685-10.192c10.534,5.49,20.391,8.217,29.561,8.203 c9.856-0.012,20.236-2.953,31.125-8.898c6.227,6.692,12.966,10.346,20.211,10.933c13.795,1.073,28.614-4.111,44.377-16.84 c17.49-14.104,28.043-32.79,31.796-55.485c0.836-5.624,1.272-11.292,1.272-16.966C255.998,115.814,249.707,96.601,237.062,81.761z M54.795,97.7l40.661,14.496c-4.402,8.811-10.766,13.219-19.06,13.219c-2.542,0-4.917-0.419-7.122-1.274 C58.103,118.38,53.263,109.572,54.795,97.7z M150.613,185.396l-9.156-8.389l-7.619,12.951c-3.391,0.341-6.615,0.514-9.665,0.514 c-4.401,0-8.635-0.263-12.708-0.777l-8.634-14.973l-9.151,9.909c-4.91-2.717-9.15-5.856-12.708-9.413 c-8.81-8.295-13.384-17.959-13.727-28.97c2.877,1.692,7.427,3.461,13.675,5.308l10.636,13.629l9.44-9.852 c4.734,0.702,9.234,1.12,13.466,1.275l10.689,11.498l9.671-11.949c3.559-0.173,7.285-0.515,11.182-1.01l9.924,10.159l10.933-14.227 c5.931-1.351,11.196-2.798,15.771-4.323C179.747,163.538,169.068,176.414,150.613,185.396z M175.258,124.907 c-2.209,0.849-4.66,1.273-7.369,1.273c-8.134,0-14.489-4.415-19.052-13.224l40.905-14.477 C191.105,110.331,186.273,119.141,175.258,124.907z",l={itemStyle:{normal:{borderWidth:x.theme.symbolBorderWidth}},lineStyle:{normal:{width:x.theme.lineWidth}},symbolSize:x.theme.symbolSize,symbol:x.theme.symbol,smooth:x.theme.lineSmooth},r={itemStyle:{normal:{borderWidth:x.theme.borderWidth,borderColor:x.theme.borderColor},emphasis:{borderWidth:x.theme.borderWidth,borderColor:x.theme.borderColor}}};"halloween"===x.themeName&&(l.symbol=t,r.symbol=t);var o={itemStyle:{normal:{areaColor:x.theme.mapAreaColor,borderColor:x.theme.mapBorderColor,borderWidth:x.theme.mapBorderWidth},emphasis:{areaColor:x.theme.mapAreaColorE,borderColor:x.theme.mapBorderColorE,borderWidth:x.theme.mapBorderWidthE}},label:{normal:{textStyle:{color:x.theme.mapLabelColor}},emphasis:{textStyle:{color:x.theme.mapLabelColorE}}}};return{color:x.theme.color,backgroundColor:e?x.theme.backgroundColor:"transparent",textStyle:x.theme.textColorShow?{color:x.theme.textColor}:{},title:{textStyle:{color:x.theme.titleColor},subtextStyle:{color:x.theme.subtitleColor}},line:l,radar:l,bar:{itemStyle:{normal:{barBorderWidth:x.theme.borderWidth,barBorderColor:x.theme.borderColor},emphasis:{barBorderWidth:x.theme.borderWidth,barBorderColor:x.theme.borderColor}}},pie:r,scatter:r,boxplot:r,parallel:r,sankey:r,funnel:r,gauge:r,candlestick:{itemStyle:{normal:{color:x.theme.kColor,color0:x.theme.kColor0,borderColor:x.theme.kBorderColor,borderColor0:x.theme.kBorderColor0,borderWidth:x.theme.kBorderWidth}}},graph:function(){var e=g(l);return e.color=x.theme.color,e.lineStyle={normal:{width:x.theme.graphLineWidth,color:x.theme.graphLineColor}},e.label={normal:{textStyle:{color:x.theme.markTextColor}}},e.itemStyle.normal.borderWidth=x.theme.borderWidth,e.itemStyle.normal.borderColor=x.theme.borderColor,e}(),map:o,geo:o,categoryAxis:a(1),valueAxis:a(2),logAxis:a(3),timeAxis:a(4),toolbox:{iconStyle:{normal:{borderColor:x.theme.toolboxColor},emphasis:{borderColor:x.theme.toolboxEmpasisColor}}},legend:{textStyle:{color:x.theme.legendTextColor}},tooltip:{axisPointer:{lineStyle:{color:x.theme.tooltipAxisColor,width:x.theme.tooltipAxisWidth},crossStyle:{color:x.theme.tooltipAxisColor,width:x.theme.tooltipAxisWidth}}},timeline:{lineStyle:{color:x.theme.timelineLineColor,width:x.theme.timelineLineWidth},itemStyle:{normal:{color:x.theme.timelineItemColor,borderWidth:x.theme.timelineItemBorderWidth},emphasis:{color:x.theme.timelineItemColorE}},controlStyle:{normal:{color:x.theme.timelineControlColor,borderColor:x.theme.timelineControlBorderColor,borderWidth:x.theme.timelineControlBorderWidth},emphasis:{color:x.theme.timelineControlColor,borderColor:x.theme.timelineControlBorderColor,borderWidth:x.theme.timelineControlBorderWidth}},checkpointStyle:{color:x.theme.timelineCheckColor,borderColor:x.theme.timelineCheckBorderColor},label:{normal:{textStyle:{color:x.theme.timelineLabelColor}},emphasis:{textStyle:{color:x.theme.timelineLabelColor}}}},visualMap:{color:x.theme.visualMapColor},dataZoom:{backgroundColor:x.theme.datazoomBackgroundColor,dataBackgroundColor:x.theme.datazoomDataColor,fillerColor:x.theme.datazoomFillColor,handleColor:x.theme.datazoomHandleColor,handleSize:x.theme.datazoomHandleWidth+"%",textStyle:{color:x.theme.datazoomLabelColor}},markPoint:{label:{normal:{textStyle:{color:x.theme.markTextColor}},emphasis:{textStyle:{color:x.theme.markTextColor}}}}}}function t(e,a,l){var r=$(".ec-panel").eq(e);if(r.length){var o=echarts.init(r[0],"customed");o.setOption(a[e]);var n=e+1;n===$(".ec-panel").length&&(n=0),n!==l&&(C=setTimeout(function(){t(n,a,l)},150))}}function l(){if(!x.isPauseChartUpdating){echarts.registerTheme("customed",a(!1));var e=getOptions(x);C&&clearTimeout(C);for(var l=$(".ec-panel").length,r=!1,o=0;l>o;++o){var n=$(".ec-panel").eq(o);if(n.offset().top+n.height()>0){t(o,e,o),r=!0;break}}r||t(0,e),x.chartDisplay.background=x.theme.backgroundColor,x.chartDisplay.title=x.theme.titleColor}}function r(e,a){var t=JSON.stringify(e,null," ");n(t,a,"json")}function o(e,a){n(e,a,"js")}function n(e,a,t){if(i())window.open("data:text/plain;charset=utf-8,"+encodeURIComponent(e));else try{var l=new Blob([e],{type:t});saveAs(l,a)}catch(r){console.error(r),window.open("data:text/plain;charset=utf-8,"+encodeURIComponent(e))}}function i(){return navigator.userAgent.indexOf("Safari")>0&&navigator.userAgent.indexOf("Chrome")<0}function m(){return navigator.userAgent.indexOf("MSIE")>0}function s(){return navigator.userAgent.indexOf("Trident")>0}function u(){return navigator.userAgent.indexOf("Mac OS X")>0}function d(){var e=JSON.stringify(a(!0),null," ");return e=e.split("\n").join("\n "),"(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(['exports', 'echarts'], factory);\n } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {\n // CommonJS\n factory(exports, require('echarts'));\n } else {\n // Browser globals\n factory({}, root.echarts);\n }\n}(this, function (exports, echarts) {\n var log = function (msg) {\n if (typeof console !== 'undefined') {\n console && console.error && console.error(msg);\n }\n };\n if (!echarts) {\n log('ECharts is not Loaded');\n return;\n }\n echarts.registerTheme('"+x.themeName+"', "+e+");\n}));\n"}function c(e){function a(e){$("#"+e).fadeIn(),setTimeout(function(){$("#"+e).fadeOut()},1e4)}if(window.getSelection){var t=document.createRange();t.selectNode($("#"+e+"-code")[0]);var l=window.getSelection();l.removeAllRanges(),l.addRange(t)}else if(document.selection){var t=document.body.createTextRange();t.moveToElementText($("#"+e+"-code")[0]),t.select()}$(".code-btn label").hide(),m()||s()||!document.execCommand("copy")?a("copy-"+e+"-fail"):(a("copy-"+e+"-success"),window.getSelection?window.getSelection().removeAllRanges():document.selection.empty())}function g(e){return $.extend(!0,{},e)}function h(a,t){$.ajax({url:"themes/"+y[a].name+".json",dataType:"text",success:function(l){x.loadedThemes.push({id:a,data:l}),t||e(l)}})}var b=1,y=[{name:"vintage",background:"#fef8ef",theme:["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d","#787464","#cc7e63","#724e58","#4b565b"]},{name:"dark",background:"#333",theme:["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"]},{name:"westeros",background:"transparent",theme:["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"]},{name:"essos",background:"rgba(242,234,191,0.15)",theme:["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"]},{name:"wonderland",background:"transparent",theme:["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"]},{name:"walden",background:"rgba(252,252,252,0)",theme:["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"]},{name:"chalk",background:"#293441",theme:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"]},{name:"infographic",background:"transparent",theme:["#C1232B","#27727B","#FCCE10","#E87C25","#B5C334","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"]},{name:"macarons",background:"transparent",theme:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"]},{name:"roma",background:"transparent",theme:["#E01F54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"]},{name:"shine",background:"transparent",theme:["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8","#cda819","#32a487"]},{name:"purple-passion",background:"rgba(91,92,110,1)",theme:["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]},{name:"halloween",background:"rgba(51,51,51,1)",theme:["#ff715e","#ffaf51","#ffee51","#797fba","#715c87"]}],f={seriesCnt:3,backgroundColor:"rgba(0, 0, 0, 0)",titleColor:"#333",subtitleColor:"#aaa",textColorShow:!1,textColor:"#333",markTextColor:"#eee",color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],borderColor:"#ccc",borderWidth:0,visualMapColor:["#bf444c","#d88273","#f6efa6"],legendTextColor:"#333",kColor:"#c23531",kColor0:"#314656",kBorderColor:"#c23531",kBorderColor0:"#314656",kBorderWidth:1,lineWidth:2,symbolSize:4,symbol:"emptyCircle",symbolBorderWidth:1,lineSmooth:!1,graphLineWidth:1,graphLineColor:"#aaa",mapLabelColor:"#000",mapLabelColorE:"rgb(100,0,0)",mapBorderColor:"#444",mapBorderColorE:"#444",mapBorderWidth:.5,mapBorderWidthE:1,mapAreaColor:"#eee",mapAreaColorE:"rgba(255,215,0,0.8)",axes:function(){for(var e=["all","category","value","log","time"],a=["通用","类目","数值","对数","时间"],t=[],l=0;l