blob: e777e8e29f417d934f1141daf4de449cdee3dca3 [file] [log] [blame]
var VueColor=Vue.extend({template:'<div class="input-group colorpicker-component"><input type="text" class="form-control" debounce="2000" /><span class="input-group-addon"><i></i></span></div>',compiled:function(){var a=this,t=$(this.$el);t.find("input").val(this.color),t.colorpicker().on("changeColor",function(){var e=t.find("input").val();echarts.color.parse(e)&&a.$set("color",e)}),a.$watch("color",function(e){t.colorpicker("setValue",e)})},props:{color:{twoWay:!0}}});Vue.component("color",VueColor);var VueColorList=Vue.extend({template:'<div><div v-for="color in colors" track-by="$index"><color :color.sync="color"></color></div><div class="theme-color-control"><a v-on:click="addColor()">增加</a><a v-on:click="removeColor()" v-show="colors.length > 1">减少</a></div></div>',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:'<div class="form-group"> <div class="col-sm-3"> <input type="checkbox" v-model="enabled" v-if="canDisable" /> <label class="control-label">{{title}}</label> </div> <div class="col-sm-9"> <div class="input-group" v-show="enabled"> <input type="number" v-model="value" class="form-control" /> </div> </div></div>',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:'<div class="form-group"> <div class="col-sm-3"> <input type="checkbox" v-model="enabled" v-if="canDisable" /> <label class="control-label">{{title}}</label> </div> <div class="col-sm-9"> <color :color.sync="color" v-show="enabled"></color> </div></div>',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:'<div class="form-group"> <div class="col-sm-3"> <input type="checkbox" v-model="enabled" v-if="canDisable" /> <label class="control-label">{{title}}</label> </div> <div class="col-sm-9"> <color-list :colors.sync="colors" v-show="enabled"></color-list> </div></div>',props:{title:String,canDisable:{type:Boolean,default:!1},colors:{twoWay:!0},enabled:{twoWay:!0,default:!0}}});function getOptions(e){function l(e){var a,t=[];a="scatter"===e?32:i;for(var l=0;l<d;++l){for(var r,o=[],n=0;n<a;++n){r="scatter"===e?[Math.floor((600*Math.random()+400)*(d-l)/d),Math.floor((600*Math.random()+400)*(d-l)/d)]:Math.floor((600*Math.random()+400)*(d-l)/d),o.push(r)}"radar"===e&&(o=[o]),t.push({type:e,data:o,name:"第"+(l+1)+"组",markPoint:"line"===e||"bar"===e||"scatter"===e?{data:[{name:"最高",type:"max"}]}:{}})}return t}function a(e){for(var a=l(e),t=0;t<a.length;++t)a[t].areaStyle={normal:{}},a[t].stack="total";return a}var d=e?e.theme.seriesCnt:4,t=["周一","周二","周三","周四","周五","周六","周日"],i=t.length,r={data:function(){for(var e=[],a=0;a<d;++a)e.push("第"+(a+1)+"组");return e}(),right:0},o={feature:{restore:{show:!0},saveAsImage:{show:!0},dataView:{show:!0},dataZoom:{show:!0}}},n={trigger:"axis"},s={left:60,right:20,top:40,bottom:50},m={};function u(e){for(var a=["北京","天津","河北","山西","内蒙古","辽宁","吉林","黑龙江","上海","江苏"],t=2002;t<=2007;t++){for(var l,r=0,o=0,n=0,i=(l=e[t]).length;n<i;n++)r=Math.max(r,l[n]),o+=l[n],e[t][n]={name:a[n],value:l[n]};e[t+"max"]=100*Math.floor(r/100),e[t+"sum"]=o}return e}m.dataPI=u({2007:[101.26,110.19,1804.72,311.97,762.1,1133.42,783.8,915.38,101.84,1816.31],2006:[88.8,103.35,1461.81,276.77,634.94,939.43,672.76,750.14,93.81,1545.05,925.1],2005:[88.68,112.38,1400,262.42,589.56,882.41,625.61,684.6,90.26,1461.51,892.83],2004:[87.36,105.28,1370.43,276.3,522.8,798.43,568.69,605.79,83.45,1367.58,814.1],2003:[84.11,89.91,1064.05,215.19,420.1,615.8,488.23,504.8,81.02,1162.45,717.85],2002:[82.44,84.21,956.84,197.8,374.69,590.2,446.17,474.2,79.68,1110.44]}),m.dataSI=u({2007:[2509.4,2892.53,7201.88,3454.49,3193.67,5544.14,2475.45,3695.58,5571.06,14471.26],2006:[2191.43,2457.08,6110.43,2755.66,2374.96,4566.83,1915.29,3365.31,4969.95,12282.89],2005:[2026.51,2135.07,5271.57,2357.04,1773.21,3869.4,1580.83,2971.68,4381.2,10524.96],2004:[1853.58,1685.93,4301.73,1919.4,1248.27,3061.62,1329.68,2487.04,3892.12,8437.99],2003:[1487.15,1337.31,3417.56,1463.38,967.49,2898.89,1098.37,2084.7,3209.02,6787.11],2002:[1249.99,1069.08,2911.69,1134.31,754.78,2609.85,943.49,1843.6,2622.45,5604.49]}),m.dataTI=u({2007:[7236.15,2250.04,4600.72,2257.99,2467.41,4486.74,2025.44,2493.04,6821.11,9730.91],2006:[5837.55,1902.31,3895.36,1846.18,1934.35,3798.26,1687.07,2096.35,5508.48,7914.11],2005:[4854.33,1658.19,3340.54,1611.07,1542.26,3295.45,1413.83,1857.42,4776.2,6612.22],2004:[4092.27,1319.76,2805.47,1375.67,1270,2811.95,1223.64,1657.77,4097.26,5198.03],2003:[3435.95,1150.81,2439.68,1176.65,1000.79,2487.85,1075.48,1467.9,3404.19,4493.31],2002:[2982.57,997.47,2149.75,992.69,811.47,2258.17,958.88,1319.4,3038.9,3891.92]});for(var c,g=[{title:{text:"折线图",subtext:"副标题样式"},series:l("line"),xAxis:{type:"category",data:t},yAxis:{type:"value"},grid:{left:60,right:20,top:60,bottom:50}},{title:{text:"折线堆积面积图",subtext:"副标题样式"},series:a("line"),xAxis:{type:"category",data:t,boundaryGap:!1},yAxis:{type:"value"},grid:{left:60,right:20,top:60,bottom:50}},{title:{text:"柱状图"},series:l("bar"),xAxis:{type:"category",data:t},yAxis:{type:"value"}},{title:{text:"柱状堆积图"},series:a("bar"),xAxis:{type:"category",data:t},yAxis:{type:"value"}},{title:{text:"散点图"},series:l("scatter"),toolbox:((c=o).left=65,c),tooltip:{trigger:"item"},xAxis:{type:"value"},yAxis:{type:"value"}},{title:{text:"饼图"},series:function(e){for(var a=[],t=0;t<d;++t)a.push({name:r.data[t],value:Math.floor((800*Math.random()+200)*(d-t)/d)});return{type:e,data:a}}("pie"),tooltip:{trigger:"item"}},{title:{text:"雷达图"},series:l("radar"),radar:{indicator:function(){for(var e=[],a=0;a<t.length;++a)e.push({name:t[a],max:1e3});return e}(),center:["50%","60%"]}},{baseOption:{timeline:{axisType:"category",autoPlay:!1,data:["2002-01-01","2003-01-01","2004-01-01",{value:"2005-01-01",tooltip:{formatter:"{b} GDP达到一个高度"}},"2006-01-01","2007-01-01","2008-01-01","2009-01-01","2010-01-01",{value:"2011-01-01",tooltip:{formatter:function(e){return e.name+"GDP达到又一个高度"}}}],label:{formatter:function(e){return new Date(e).getFullYear()}}},tooltip:{},legend:{x:"right",data:["第一产业","第二产业","第三产业"]},calculable:!0,grid:{top:60,bottom:75},xAxis:[{type:"category",axisLabel:{interval:0},data:["北京","天津","河北","山西","内蒙古","辽宁","吉林","黑龙江","上海","江苏"],splitLine:{show:!1}}],yAxis:[{type:"value",name:"GDP(亿元)"}],series:[{name:"第一产业",type:"bar"},{name:"第二产业",type:"bar"},{name:"第三产业",type:"bar"},{name:"GDP占比",type:"pie",center:["30%","35%"],radius:"28%"}]},options:[{title:{text:"时间轴"},series:[{data:m.dataPI[2002]},{data:m.dataSI[2002]},{data:m.dataTI[2002]},{data:[{name:"第一产业",value:m.dataPI["2002sum"]},{name:"第二产业",value:m.dataSI["2002sum"]},{name:"第三产业",value:m.dataTI["2002sum"]}]}]},{title:{text:"时间轴"},series:[{data:m.dataPI[2003]},{data:m.dataSI[2003]},{data:m.dataTI[2003]},{data:[{name:"第一产业",value:m.dataPI["2003sum"]},{name:"第二产业",value:m.dataSI["2003sum"]},{name:"第三产业",value:m.dataTI["2003sum"]}]}]},{title:{text:"时间轴"},series:[{data:m.dataPI[2004]},{data:m.dataSI[2004]},{data:m.dataTI[2004]},{data:[{name:"第一产业",value:m.dataPI["2004sum"]},{name:"第二产业",value:m.dataSI["2004sum"]},{name:"第三产业",value:m.dataTI["2004sum"]}]}]},{title:{text:"时间轴"},series:[{data:m.dataPI[2005]},{data:m.dataSI[2005]},{data:m.dataTI[2005]},{data:[{name:"第一产业",value:m.dataPI["2005sum"]},{name:"第二产业",value:m.dataSI["2005sum"]},{name:"第三产业",value:m.dataTI["2005sum"]}]}]},{title:{text:"时间轴"},series:[{data:m.dataPI[2006]},{data:m.dataSI[2006]},{data:m.dataTI[2006]},{data:[{name:"第一产业",value:m.dataPI["2006sum"]},{name:"第二产业",value:m.dataSI["2006sum"]},{name:"第三产业",value:m.dataTI["2006sum"]}]}]},{title:{text:"时间轴"},series:[{data:m.dataPI[2007]},{data:m.dataSI[2007]},{data:m.dataTI[2007]},{data:[{name:"第一产业",value:m.dataPI["2007sum"]},{name:"第二产业",value:m.dataSI["2007sum"]},{name:"第三产业",value:m.dataTI["2007sum"]}]}]}]},{title:{text:"K 线图与数据缩放"},grid:{left:60,right:20,top:40,bottom:70},toolbox:{show:!0,feature:{mark:{show:!0},dataZoom:{show:!0},magicType:{show:!0,type:["line","bar"]},dataView:{show:!0,readOnly:!1},restore:{show:!0}}},dataZoom:{show:!0,realtime:!0,start:50,end:100},xAxis:[{type:"category",boundaryGap:!0,axisTick:{onGap:!1},data:["2013/1/24","2013/1/25","2013/1/28","2013/1/29","2013/1/30","2013/1/31","2013/2/1","2013/2/4","2013/2/5","2013/2/6","2013/2/7","2013/2/8","2013/2/18","2013/2/19","2013/2/20","2013/2/21","2013/2/22","2013/2/25","2013/2/26","2013/2/27","2013/2/28","2013/3/1","2013/3/4","2013/3/5","2013/3/6","2013/3/7","2013/3/8","2013/3/11","2013/3/12","2013/3/13","2013/3/14","2013/3/15","2013/3/18","2013/3/19","2013/3/20","2013/3/21","2013/3/22","2013/3/25","2013/3/26","2013/3/27","2013/3/28","2013/3/29","2013/4/1","2013/4/2","2013/4/3","2013/4/8","2013/4/9","2013/4/10","2013/4/11","2013/4/12","2013/4/15","2013/4/16","2013/4/17","2013/4/18","2013/4/19","2013/4/22","2013/4/23","2013/4/24","2013/4/25","2013/4/26","2013/5/2","2013/5/3","2013/5/6","2013/5/7","2013/5/8","2013/5/9","2013/5/10","2013/5/13","2013/5/14","2013/5/15","2013/5/16","2013/5/17","2013/5/20","2013/5/21","2013/5/22","2013/5/23","2013/5/24","2013/5/27","2013/5/28","2013/5/29","2013/5/30","2013/5/31","2013/6/3","2013/6/4","2013/6/5","2013/6/6","2013/6/7","2013/6/13"]}],yAxis:[{type:"value",scale:!0,precision:2,splitNumber:7,boundaryGap:[.05,.05]}],series:[{name:"上证指数",type:"candlestick",data:[[2320.26,2302.6,2287.3,2362.94],[2300,2291.3,2288.26,2308.38],[2295.35,2346.5,2295.35,2346.92],[2347.22,2358.98,2337.35,2363.8],[2360.75,2382.48,2347.89,2383.76],[2383.43,2385.42,2371.23,2391.82],[2377.41,2419.02,2369.57,2421.15],[2425.92,2428.15,2417.58,2440.38],[2411,2433.13,2403.3,2437.42],[2432.68,2434.48,2427.7,2441.73],[2430.69,2418.53,2394.22,2433.89],[2416.62,2432.4,2414.4,2443.03],[2441.91,2421.56,2415.43,2444.8],[2420.26,2382.91,2373.53,2427.07],[2383.49,2397.18,2370.61,2397.94],[2378.82,2325.95,2309.17,2378.82],[2322.94,2314.16,2308.76,2330.88],[2320.62,2325.82,2315.01,2338.78],[2313.74,2293.34,2289.89,2340.71],[2297.77,2313.22,2292.03,2324.63],[2322.32,2365.59,2308.92,2366.16],[2364.54,2359.51,2330.86,2369.65],[2332.08,2273.4,2259.25,2333.54],[2274.81,2326.31,2270.1,2328.14],[2333.61,2347.18,2321.6,2351.44],[2340.44,2324.29,2304.27,2352.02],[2326.42,2318.61,2314.59,2333.67],[2314.68,2310.59,2296.58,2320.96],[2309.16,2286.6,2264.83,2333.29],[2282.17,2263.97,2253.25,2286.33],[2255.77,2270.28,2253.31,2276.22],[2269.31,2278.4,2250,2312.08],[2267.29,2240.02,2239.21,2276.05],[2244.26,2257.43,2232.02,2261.31],[2257.74,2317.37,2257.42,2317.86],[2318.21,2324.24,2311.6,2330.81],[2321.4,2328.28,2314.97,2332],[2334.74,2326.72,2319.91,2344.89],[2318.58,2297.67,2281.12,2319.99],[2299.38,2301.26,2289,2323.48],[2273.55,2236.3,2232.91,2273.55],[2238.49,2236.62,2228.81,2246.87],[2229.46,2234.4,2227.31,2243.95],[2234.9,2227.74,2220.44,2253.42],[2232.69,2225.29,2217.25,2241.34],[2196.24,2211.59,2180.67,2212.59],[2215.47,2225.77,2215.47,2234.73],[2224.93,2226.13,2212.56,2233.04],[2236.98,2219.55,2217.26,2242.48],[2218.09,2206.78,2204.44,2226.26],[2199.91,2181.94,2177.39,2204.99],[2169.63,2194.85,2165.78,2196.43],[2195.03,2193.8,2178.47,2197.51],[2181.82,2197.6,2175.44,2206.03],[2201.12,2244.64,2200.58,2250.11],[2236.4,2242.17,2232.26,2245.12],[2242.62,2184.54,2182.81,2242.62],[2187.35,2218.32,2184.11,2226.12],[2213.19,2199.31,2191.85,2224.63],[2203.89,2177.91,2173.86,2210.58],[2170.78,2174.12,2161.14,2179.65],[2179.05,2205.5,2179.05,2222.81],[2212.5,2231.17,2212.5,2236.07],[2227.86,2235.57,2219.44,2240.26],[2242.39,2246.3,2235.42,2255.21],[2246.96,2232.97,2221.38,2247.86],[2228.82,2246.83,2225.81,2247.67],[2247.68,2241.92,2231.36,2250.85],[2238.9,2217.01,2205.87,2239.93],[2217.09,2224.8,2213.58,2225.19],[2221.34,2251.81,2210.77,2252.87],[2249.81,2282.87,2248.41,2288.09],[2286.33,2299.99,2281.9,2309.39],[2297.11,2305.11,2290.12,2305.3],[2303.75,2302.4,2292.43,2314.18],[2293.81,2275.67,2274.1,2304.95],[2281.45,2288.53,2270.25,2292.59],[2286.66,2293.08,2283.94,2301.7],[2293.4,2321.32,2281.47,2322.1],[2323.54,2324.02,2321.17,2334.33],[2316.25,2317.75,2310.49,2325.72],[2320.74,2300.59,2299.37,2325.53],[2300.21,2299.25,2294.11,2313.43],[2297.1,2272.42,2264.76,2297.1],[2270.71,2270.93,2260.87,2276.86],[2264.43,2242.11,2240.07,2266.69],[2242.26,2210.9,2205.07,2250.63],[2190.1,2148.35,2126.22,2190.1]]}]},{title:{text:"图"},series:[{name:"Les Miserables",type:"graph",layout:"none",data:[{id:"0",name:"Myriel",label:{normal:{formatter:"Myriel",show:!1}},symbolSize:8.685715,x:-266.82776,y:299.6904,attributes:{modularity_class:0},value:28.685715,category:0},{id:"1",name:"Napoleon",label:{normal:{formatter:"Napoleon",show:!1}},symbolSize:4,x:-418.08344,y:446.8853,attributes:{modularity_class:0},value:4,category:0},{id:"2",name:"MlleBaptistine",label:{normal:{formatter:"MlleBaptistine",show:!1}},symbolSize:9.485714,x:-212.76357,y:245.29176,attributes:{modularity_class:1},value:9.485714,category:1},{id:"3",name:"MmeMagloire",label:{normal:{formatter:"MmeMagloire",show:!1}},symbolSize:9.485714,x:-242.82404,y:235.26283,attributes:{modularity_class:1},value:9.485714,category:1},{id:"4",name:"CountessDeLo",label:{normal:{formatter:"CountessDeLo",show:!1}},symbolSize:4,x:-379.30386,y:429.06424,attributes:{modularity_class:0},value:4,category:0},{id:"5",name:"Geborand",label:{normal:{formatter:"Geborand",show:!1}},symbolSize:4,x:-417.26337,y:406.03506,attributes:{modularity_class:0},value:4,category:0},{id:"6",name:"Champtercier",label:{normal:{formatter:"Champtercier",show:!1}},symbolSize:4,x:-332.6012,y:485.16974,attributes:{modularity_class:0},value:4,category:0},{id:"7",name:"Cravatte",label:{normal:{formatter:"Cravatte",show:!1}},symbolSize:4,x:-382.69568,y:475.09113,attributes:{modularity_class:0},value:4,category:0},{id:"8",name:"Count",label:{normal:{formatter:"Count",show:!1}},symbolSize:4,x:-320.384,y:387.17325,attributes:{modularity_class:0},value:4,category:0},{id:"9",name:"OldMan",label:{normal:{formatter:"OldMan",show:!1}},symbolSize:4,x:-344.39832,y:451.16772,attributes:{modularity_class:0},value:4,category:0},{id:"10",name:"Labarre",label:{normal:{formatter:"Labarre",show:!1}},symbolSize:4,x:-89.34107,y:234.56128,attributes:{modularity_class:1},value:4,category:1},{id:"11",name:"Valjean",label:{normal:{formatter:"Valjean",show:!1}},symbolSize:40,x:-87.93029,y:-6.8120565,attributes:{modularity_class:1},value:100,category:1},{id:"12",name:"Marguerite",label:{normal:{formatter:"Marguerite",show:!1}},symbolSize:6.742859,x:-339.77908,y:-184.69139,attributes:{modularity_class:1},value:6.742859,category:1},{id:"13",name:"MmeDeR",label:{normal:{formatter:"MmeDeR",show:!1}},symbolSize:4,x:-194.31313,y:178.55301,attributes:{modularity_class:1},value:4,category:1},{id:"14",name:"Isabeau",label:{normal:{formatter:"Isabeau",show:!1}},symbolSize:4,x:-158.05168,y:201.99768,attributes:{modularity_class:1},value:4,category:1},{id:"15",name:"Gervais",label:{normal:{formatter:"Gervais",show:!1}},symbolSize:4,x:-127.701546,y:242.55057,attributes:{modularity_class:1},value:4,category:1},{id:"16",name:"Tholomyes",label:{normal:{formatter:"Tholomyes",show:!1}},symbolSize:15.942856,x:-385.2226,y:-393.5572,attributes:{modularity_class:2},value:25.942856,category:2},{id:"17",name:"Listolier",label:{normal:{formatter:"Listolier",show:!1}},symbolSize:17.457146,x:-516.55884,y:-393.98975,attributes:{modularity_class:2},value:20.457146,category:2},{id:"18",name:"Fameuil",label:{normal:{formatter:"Fameuil",show:!1}},symbolSize:17.457146,x:-464.79382,y:-493.57944,attributes:{modularity_class:2},value:20.457146,category:2},{id:"19",name:"Blacheville",label:{normal:{formatter:"Blacheville",show:!1}},symbolSize:17.457146,x:-515.1624,y:-456.9891,attributes:{modularity_class:2},value:20.457146,category:2},{id:"20",name:"Favourite",label:{normal:{formatter:"Favourite",show:!1}},symbolSize:17.457146,x:-408.12122,y:-464.5048,attributes:{modularity_class:2},value:20.457146,category:2},{id:"21",name:"Dahlia",label:{normal:{formatter:"Dahlia",show:!1}},symbolSize:17.457146,x:-456.44113,y:-425.13303,attributes:{modularity_class:2},value:20.457146,category:2},{id:"22",name:"Zephine",label:{normal:{formatter:"Zephine",show:!1}},symbolSize:17.457146,x:-459.1107,y:-362.5133,attributes:{modularity_class:2},value:20.457146,category:2},{id:"23",name:"Fantine",label:{normal:{formatter:"Fantine",show:!1}},symbolSize:22.4,x:-313.42786,y:-289.44803,attributes:{modularity_class:2},value:42.4,category:2},{id:"24",name:"MmeThenardier",label:{normal:{formatter:"MmeThenardier",show:!1}},symbolSize:14.428574,x:4.6313396,y:-273.8517,attributes:{modularity_class:7},value:31.428574,category:7},{id:"25",name:"Thenardier",label:{normal:{formatter:"Thenardier",show:!1}},symbolSize:25.142853,x:82.80825,y:-203.1144,attributes:{modularity_class:7},value:45.142853,category:7},{id:"26",name:"Cosette",label:{normal:{formatter:"Cosette",show:!1}},symbolSize:21.428574,x:78.64646,y:-31.512747,attributes:{modularity_class:6},value:31.428574,category:6},{id:"27",name:"Javert",label:{normal:{formatter:"Javert",show:!1}},symbolSize:27.88571,x:-81.46074,y:-204.20204,attributes:{modularity_class:7},value:47.88571,category:7},{id:"28",name:"Fauchelevent",label:{normal:{formatter:"Fauchelevent",show:!1}},symbolSize:12.228573,x:-225.73984,y:82.41631,attributes:{modularity_class:4},value:12.228573,category:4},{id:"29",name:"Bamatabois",label:{normal:{formatter:"Bamatabois",show:!1}},symbolSize:23.2,x:-385.6842,y:-20.206686,attributes:{modularity_class:3},value:23.2,category:3},{id:"30",name:"Perpetue",label:{normal:{formatter:"Perpetue",show:!1}},symbolSize:6.742859,x:-403.92447,y:-197.69823,attributes:{modularity_class:2},value:6.742859,category:2},{id:"31",name:"Simplice",label:{normal:{formatter:"Simplice",show:!1}},symbolSize:12.228573,x:-281.4253,y:-158.45137,attributes:{modularity_class:2},value:12.228573,category:2},{id:"32",name:"Scaufflaire",label:{normal:{formatter:"Scaufflaire",show:!1}},symbolSize:4,x:-122.41348,y:210.37503,attributes:{modularity_class:1},value:4,category:1},{id:"33",name:"Woman1",label:{normal:{formatter:"Woman1",show:!1}},symbolSize:6.742859,x:-234.6001,y:-113.15067,attributes:{modularity_class:1},value:6.742859,category:1},{id:"34",name:"Judge",label:{normal:{formatter:"Judge",show:!1}},symbolSize:17.714287,x:-387.84915,y:58.7059,attributes:{modularity_class:3},value:17.714287,category:3},{id:"35",name:"Champmathieu",label:{normal:{formatter:"Champmathieu",show:!1}},symbolSize:17.714287,x:-338.2307,y:87.48405,attributes:{modularity_class:3},value:17.714287,category:3},{id:"36",name:"Brevet",label:{normal:{formatter:"Brevet",show:!1}},symbolSize:17.714287,x:-453.26874,y:58.94648,attributes:{modularity_class:3},value:17.714287,category:3},{id:"37",name:"Chenildieu",label:{normal:{formatter:"Chenildieu",show:!1}},symbolSize:17.714287,x:-386.44904,y:140.05937,attributes:{modularity_class:3},value:17.714287,category:3},{id:"38",name:"Cochepaille",label:{normal:{formatter:"Cochepaille",show:!1}},symbolSize:17.714287,x:-446.7876,y:123.38005,attributes:{modularity_class:3},value:17.714287,category:3},{id:"39",name:"Pontmercy",label:{normal:{formatter:"Pontmercy",show:!1}},symbolSize:9.485714,x:336.49738,y:-269.55914,attributes:{modularity_class:6},value:9.485714,category:6},{id:"40",name:"Boulatruelle",label:{normal:{formatter:"Boulatruelle",show:!1}},symbolSize:4,x:29.187843,y:-460.13132,attributes:{modularity_class:7},value:4,category:7},{id:"41",name:"Eponine",label:{normal:{formatter:"Eponine",show:!1}},symbolSize:31.428574,x:238.36697,y:-210.00926,attributes:{modularity_class:7},value:31.428574,category:7},{id:"42",name:"Anzelma",label:{normal:{formatter:"Anzelma",show:!1}},symbolSize:9.485714,x:189.69513,y:-346.50662,attributes:{modularity_class:7},value:9.485714,category:7},{id:"43",name:"Woman2",label:{normal:{formatter:"Woman2",show:!1}},symbolSize:9.485714,x:-187.00418,y:-145.02663,attributes:{modularity_class:6},value:9.485714,category:6},{id:"44",name:"MotherInnocent",label:{normal:{formatter:"MotherInnocent",show:!1}},symbolSize:6.742859,x:-252.99521,y:129.87549,attributes:{modularity_class:4},value:6.742859,category:4},{id:"45",name:"Gribier",label:{normal:{formatter:"Gribier",show:!1}},symbolSize:4,x:-296.07935,y:163.11964,attributes:{modularity_class:4},value:4,category:4},{id:"46",name:"Jondrette",label:{normal:{formatter:"Jondrette",show:!1}},symbolSize:4,x:550.3201,y:522.4031,attributes:{modularity_class:5},value:4,category:5},{id:"47",name:"MmeBurgon",label:{normal:{formatter:"MmeBurgon",show:!1}},symbolSize:6.742859,x:488.13535,y:356.8573,attributes:{modularity_class:5},value:6.742859,category:5},{id:"48",name:"Gavroche",label:{normal:{formatter:"Gavroche",show:!1}},symbolSize:31.600006,x:387.89572,y:110.462326,attributes:{modularity_class:8},value:61.600006,category:8},{id:"49",name:"Gillenormand",label:{normal:{formatter:"Gillenormand",show:!1}},symbolSize:20.457146,x:126.4831,y:68.10622,attributes:{modularity_class:6},value:20.457146,category:6},{id:"50",name:"Magnon",label:{normal:{formatter:"Magnon",show:!1}},symbolSize:6.742859,x:127.07365,y:-113.05923,attributes:{modularity_class:6},value:6.742859,category:6},{id:"51",name:"MlleGillenormand",label:{normal:{formatter:"MlleGillenormand",show:!1}},symbolSize:20.457146,x:162.63559,y:117.6565,attributes:{modularity_class:6},value:20.457146,category:6},{id:"52",name:"MmePontmercy",label:{normal:{formatter:"MmePontmercy",show:!1}},symbolSize:6.742859,x:353.66415,y:-205.89165,attributes:{modularity_class:6},value:6.742859,category:6},{id:"53",name:"MlleVaubois",label:{normal:{formatter:"MlleVaubois",show:!1}},symbolSize:4,x:165.43939,y:339.7736,attributes:{modularity_class:6},value:4,category:6},{id:"54",name:"LtGillenormand",label:{normal:{formatter:"LtGillenormand",show:!1}},symbolSize:12.228573,x:137.69348,y:196.1069,attributes:{modularity_class:6},value:12.228573,category:6},{id:"55",name:"Marius",label:{normal:{formatter:"Marius",show:!1}},symbolSize:33.37143,x:206.44687,y:-13.805411,attributes:{modularity_class:6},value:53.37143,category:6},{id:"56",name:"BaronessT",label:{normal:{formatter:"BaronessT",show:!1}},symbolSize:6.742859,x:194.82993,y:224.78036,attributes:{modularity_class:6},value:6.742859,category:6},{id:"57",name:"Mabeuf",label:{normal:{formatter:"Mabeuf",show:!1}},symbolSize:31.428574,x:597.6618,y:135.18481,attributes:{modularity_class:8},value:21.428574,category:8},{id:"58",name:"Enjolras",label:{normal:{formatter:"Enjolras",show:!1}},symbolSize:42.4,x:355.78366,y:-74.882454,attributes:{modularity_class:8},value:22.4,category:8},{id:"59",name:"Combeferre",label:{normal:{formatter:"Combeferre",show:!1}},symbolSize:21.428574,x:515.2961,y:-46.167564,attributes:{modularity_class:8},value:31.428574,category:8},{id:"60",name:"Prouvaire",label:{normal:{formatter:"Prouvaire",show:!1}},symbolSize:15.942856,x:614.29285,y:-69.3104,attributes:{modularity_class:8},value:25.942856,category:8},{id:"61",name:"Feuilly",label:{normal:{formatter:"Feuilly",show:!1}},symbolSize:21.428574,x:550.1917,y:-128.17537,attributes:{modularity_class:8},value:31.428574,category:8},{id:"62",name:"Courfeyrac",label:{normal:{formatter:"Courfeyrac",show:!1}},symbolSize:26.91429,x:436.17184,y:-12.7286825,attributes:{modularity_class:8},value:36.91429,category:8},{id:"63",name:"Bahorel",label:{normal:{formatter:"Bahorel",show:!1}},symbolSize:24.17143,x:602.55225,y:16.421427,attributes:{modularity_class:8},value:34.17143,category:8},{id:"64",name:"Bossuet",label:{normal:{formatter:"Bossuet",show:!1}},symbolSize:26.91429,x:455.81955,y:-115.45826,attributes:{modularity_class:8},value:36.91429,category:8},{id:"65",name:"Joly",label:{normal:{formatter:"Joly",show:!1}},symbolSize:24.17143,x:516.40784,y:47.242233,attributes:{modularity_class:8},value:34.17143,category:8},{id:"66",name:"Grantaire",label:{normal:{formatter:"Grantaire",show:!1}},symbolSize:28.685715,x:646.4313,y:-151.06331,attributes:{modularity_class:8},value:28.685715,category:8},{id:"67",name:"MotherPlutarch",label:{normal:{formatter:"MotherPlutarch",show:!1}},symbolSize:4,x:668.9568,y:204.65488,attributes:{modularity_class:8},value:4,category:8},{id:"68",name:"Gueulemer",label:{normal:{formatter:"Gueulemer",show:!1}},symbolSize:28.685715,x:78.4799,y:-347.15146,attributes:{modularity_class:7},value:28.685715,category:7},{id:"69",name:"Babet",label:{normal:{formatter:"Babet",show:!1}},symbolSize:28.685715,x:150.35959,y:-298.50797,attributes:{modularity_class:7},value:28.685715,category:7},{id:"70",name:"Claquesous",label:{normal:{formatter:"Claquesous",show:!1}},symbolSize:28.685715,x:137.3717,y:-410.2809,attributes:{modularity_class:7},value:28.685715,category:7},{id:"71",name:"Montparnasse",label:{normal:{formatter:"Montparnasse",show:!1}},symbolSize:25.942856,x:234.87747,y:-400.85983,attributes:{modularity_class:7},value:25.942856,category:7},{id:"72",name:"Toussaint",label:{normal:{formatter:"Toussaint",show:!1}},symbolSize:9.485714,x:40.942253,y:113.78272,attributes:{modularity_class:1},value:9.485714,category:1},{id:"73",name:"Child1",label:{normal:{formatter:"Child1",show:!1}},symbolSize:6.742859,x:437.939,y:291.58234,attributes:{modularity_class:8},value:6.742859,category:8},{id:"74",name:"Child2",label:{normal:{formatter:"Child2",show:!1}},symbolSize:6.742859,x:466.04922,y:283.3606,attributes:{modularity_class:8},value:6.742859,category:8},{id:"75",name:"Brujon",label:{normal:{formatter:"Brujon",show:!1}},symbolSize:20.457146,x:238.79364,y:-314.06345,attributes:{modularity_class:7},value:20.457146,category:7},{id:"76",name:"MmeHucheloup",label:{normal:{formatter:"MmeHucheloup",show:!1}},symbolSize:20.457146,x:712.18353,y:4.8131495,attributes:{modularity_class:8},value:20.457146,category:8}],links:[{id:"0",name:null,source:"1",target:"0"},{id:"1",name:null,source:"2",target:"0"},{id:"2",name:null,source:"3",target:"0"},{id:"3",name:null,source:"3",target:"2"},{id:"4",name:null,source:"4",target:"0"},{id:"5",name:null,source:"5",target:"0"},{id:"6",name:null,source:"6",target:"0"},{id:"7",name:null,source:"7",target:"0"},{id:"8",name:null,source:"8",target:"0"},{id:"9",name:null,source:"9",target:"0"},{id:"13",name:null,source:"11",target:"0"},{id:null,name:null,source:"11",target:"2"},{id:"11",name:null,source:"11",target:"3"},{id:"10",name:null,source:"11",target:"10"},{id:"14",name:null,source:"12",target:"11"},{id:"15",name:null,source:"13",target:"11"},{id:"16",name:null,source:"14",target:"11"},{id:"17",name:null,source:"15",target:"11"},{id:"18",name:null,source:"17",target:"16"},{id:"19",name:null,source:"18",target:"16"},{id:"20",name:null,source:"18",target:"17"},{id:"21",name:null,source:"19",target:"16"},{id:"22",name:null,source:"19",target:"17"},{id:"23",name:null,source:"19",target:"18"},{id:"24",name:null,source:"20",target:"16"},{id:"25",name:null,source:"20",target:"17"},{id:"26",name:null,source:"20",target:"18"},{id:"27",name:null,source:"20",target:"19"},{id:"28",name:null,source:"21",target:"16"},{id:"29",name:null,source:"21",target:"17"},{id:"30",name:null,source:"21",target:"18"},{id:"31",name:null,source:"21",target:"19"},{id:"32",name:null,source:"21",target:"20"},{id:"33",name:null,source:"22",target:"16"},{id:"34",name:null,source:"22",target:"17"},{id:"35",name:null,source:"22",target:"18"},{id:"36",name:null,source:"22",target:"19"},{id:"37",name:null,source:"22",target:"20"},{id:"38",name:null,source:"22",target:"21"},{id:"47",name:null,source:"23",target:"11"},{id:"46",name:null,source:"23",target:"12"},{id:"39",name:null,source:"23",target:"16"},{id:"40",name:null,source:"23",target:"17"},{id:"41",name:null,source:"23",target:"18"},{id:"42",name:null,source:"23",target:"19"},{id:"43",name:null,source:"23",target:"20"},{id:"44",name:null,source:"23",target:"21"},{id:"45",name:null,source:"23",target:"22"},{id:null,name:null,source:"24",target:"11"},{id:"48",name:null,source:"24",target:"23"},{id:"52",name:null,source:"25",target:"11"},{id:"51",name:null,source:"25",target:"23"},{id:"50",name:null,source:"25",target:"24"},{id:null,name:null,source:"26",target:"11"},{id:null,name:null,source:"26",target:"16"},{id:"53",name:null,source:"26",target:"24"},{id:"56",name:null,source:"26",target:"25"},{id:"57",name:null,source:"27",target:"11"},{id:"58",name:null,source:"27",target:"23"},{id:null,name:null,source:"27",target:"24"},{id:"59",name:null,source:"27",target:"25"},{id:"61",name:null,source:"27",target:"26"},{id:"62",name:null,source:"28",target:"11"},{id:"63",name:null,source:"28",target:"27"},{id:"66",name:null,source:"29",target:"11"},{id:"64",name:null,source:"29",target:"23"},{id:"65",name:null,source:"29",target:"27"},{id:"67",name:null,source:"30",target:"23"},{id:null,name:null,source:"31",target:"11"},{id:null,name:null,source:"31",target:"23"},{id:null,name:null,source:"31",target:"27"},{id:"68",name:null,source:"31",target:"30"},{id:"72",name:null,source:"32",target:"11"},{id:"73",name:null,source:"33",target:"11"},{id:"74",name:null,source:"33",target:"27"},{id:"75",name:null,source:"34",target:"11"},{id:"76",name:null,source:"34",target:"29"},{id:"77",name:null,source:"35",target:"11"},{id:null,name:null,source:"35",target:"29"},{id:"78",name:null,source:"35",target:"34"},{id:"82",name:null,source:"36",target:"11"},{id:"83",name:null,source:"36",target:"29"},{id:"80",name:null,source:"36",target:"34"},{id:"81",name:null,source:"36",target:"35"},{id:"87",name:null,source:"37",target:"11"},{id:"88",name:null,source:"37",target:"29"},{id:"84",name:null,source:"37",target:"34"},{id:"85",name:null,source:"37",target:"35"},{id:"86",name:null,source:"37",target:"36"},{id:"93",name:null,source:"38",target:"11"},{id:"94",name:null,source:"38",target:"29"},{id:"89",name:null,source:"38",target:"34"},{id:"90",name:null,source:"38",target:"35"},{id:"91",name:null,source:"38",target:"36"},{id:"92",name:null,source:"38",target:"37"},{id:"95",name:null,source:"39",target:"25"},{id:"96",name:null,source:"40",target:"25"},{id:"97",name:null,source:"41",target:"24"},{id:"98",name:null,source:"41",target:"25"},{id:"101",name:null,source:"42",target:"24"},{id:"100",name:null,source:"42",target:"25"},{id:"99",name:null,source:"42",target:"41"},{id:"102",name:null,source:"43",target:"11"},{id:"103",name:null,source:"43",target:"26"},{id:"104",name:null,source:"43",target:"27"},{id:null,name:null,source:"44",target:"11"},{id:"105",name:null,source:"44",target:"28"},{id:"107",name:null,source:"45",target:"28"},{id:"108",name:null,source:"47",target:"46"},{id:"112",name:null,source:"48",target:"11"},{id:"110",name:null,source:"48",target:"25"},{id:"111",name:null,source:"48",target:"27"},{id:"109",name:null,source:"48",target:"47"},{id:null,name:null,source:"49",target:"11"},{id:"113",name:null,source:"49",target:"26"},{id:null,name:null,source:"50",target:"24"},{id:"115",name:null,source:"50",target:"49"},{id:"119",name:null,source:"51",target:"11"},{id:"118",name:null,source:"51",target:"26"},{id:"117",name:null,source:"51",target:"49"},{id:null,name:null,source:"52",target:"39"},{id:"120",name:null,source:"52",target:"51"},{id:"122",name:null,source:"53",target:"51"},{id:"125",name:null,source:"54",target:"26"},{id:"124",name:null,source:"54",target:"49"},{id:"123",name:null,source:"54",target:"51"},{id:"131",name:null,source:"55",target:"11"},{id:"132",name:null,source:"55",target:"16"},{id:"133",name:null,source:"55",target:"25"},{id:null,name:null,source:"55",target:"26"},{id:"128",name:null,source:"55",target:"39"},{id:"134",name:null,source:"55",target:"41"},{id:"135",name:null,source:"55",target:"48"},{id:"127",name:null,source:"55",target:"49"},{id:"126",name:null,source:"55",target:"51"},{id:"129",name:null,source:"55",target:"54"},{id:"136",name:null,source:"56",target:"49"},{id:"137",name:null,source:"56",target:"55"},{id:null,name:null,source:"57",target:"41"},{id:null,name:null,source:"57",target:"48"},{id:"138",name:null,source:"57",target:"55"},{id:"145",name:null,source:"58",target:"11"},{id:null,name:null,source:"58",target:"27"},{id:"142",name:null,source:"58",target:"48"},{id:"141",name:null,source:"58",target:"55"},{id:"144",name:null,source:"58",target:"57"},{id:"148",name:null,source:"59",target:"48"},{id:"147",name:null,source:"59",target:"55"},{id:null,name:null,source:"59",target:"57"},{id:"146",name:null,source:"59",target:"58"},{id:"150",name:null,source:"60",target:"48"},{id:"151",name:null,source:"60",target:"58"},{id:"152",name:null,source:"60",target:"59"},{id:"153",name:null,source:"61",target:"48"},{id:"158",name:null,source:"61",target:"55"},{id:"157",name:null,source:"61",target:"57"},{id:"154",name:null,source:"61",target:"58"},{id:"156",name:null,source:"61",target:"59"},{id:"155",name:null,source:"61",target:"60"},{id:"164",name:null,source:"62",target:"41"},{id:"162",name:null,source:"62",target:"48"},{id:"159",name:null,source:"62",target:"55"},{id:null,name:null,source:"62",target:"57"},{id:"160",name:null,source:"62",target:"58"},{id:"161",name:null,source:"62",target:"59"},{id:null,name:null,source:"62",target:"60"},{id:"165",name:null,source:"62",target:"61"},{id:null,name:null,source:"63",target:"48"},{id:"174",name:null,source:"63",target:"55"},{id:null,name:null,source:"63",target:"57"},{id:null,name:null,source:"63",target:"58"},{id:"167",name:null,source:"63",target:"59"},{id:null,name:null,source:"63",target:"60"},{id:"172",name:null,source:"63",target:"61"},{id:"169",name:null,source:"63",target:"62"},{id:"184",name:null,source:"64",target:"11"},{id:null,name:null,source:"64",target:"48"},{id:"175",name:null,source:"64",target:"55"},{id:"183",name:null,source:"64",target:"57"},{id:"179",name:null,source:"64",target:"58"},{id:"182",name:null,source:"64",target:"59"},{id:"181",name:null,source:"64",target:"60"},{id:"180",name:null,source:"64",target:"61"},{id:"176",name:null,source:"64",target:"62"},{id:"178",name:null,source:"64",target:"63"},{id:"187",name:null,source:"65",target:"48"},{id:"194",name:null,source:"65",target:"55"},{id:"193",name:null,source:"65",target:"57"},{id:null,name:null,source:"65",target:"58"},{id:"192",name:null,source:"65",target:"59"},{id:null,name:null,source:"65",target:"60"},{id:"190",name:null,source:"65",target:"61"},{id:"188",name:null,source:"65",target:"62"},{id:"185",name:null,source:"65",target:"63"},{id:"186",name:null,source:"65",target:"64"},{id:"200",name:null,source:"66",target:"48"},{id:"196",name:null,source:"66",target:"58"},{id:"197",name:null,source:"66",target:"59"},{id:"203",name:null,source:"66",target:"60"},{id:"202",name:null,source:"66",target:"61"},{id:"198",name:null,source:"66",target:"62"},{id:"201",name:null,source:"66",target:"63"},{id:"195",name:null,source:"66",target:"64"},{id:"199",name:null,source:"66",target:"65"},{id:"204",name:null,source:"67",target:"57"},{id:null,name:null,source:"68",target:"11"},{id:null,name:null,source:"68",target:"24"},{id:"205",name:null,source:"68",target:"25"},{id:"208",name:null,source:"68",target:"27"},{id:null,name:null,source:"68",target:"41"},{id:"209",name:null,source:"68",target:"48"},{id:"213",name:null,source:"69",target:"11"},{id:"214",name:null,source:"69",target:"24"},{id:"211",name:null,source:"69",target:"25"},{id:null,name:null,source:"69",target:"27"},{id:"217",name:null,source:"69",target:"41"},{id:"216",name:null,source:"69",target:"48"},{id:"212",name:null,source:"69",target:"68"},{id:"221",name:null,source:"70",target:"11"},{id:"222",name:null,source:"70",target:"24"},{id:"218",name:null,source:"70",target:"25"},{id:"223",name:null,source:"70",target:"27"},{id:"224",name:null,source:"70",target:"41"},{id:"225",name:null,source:"70",target:"58"},{id:"220",name:null,source:"70",target:"68"},{id:"219",name:null,source:"70",target:"69"},{id:"230",name:null,source:"71",target:"11"},{id:"233",name:null,source:"71",target:"25"},{id:"226",name:null,source:"71",target:"27"},{id:"232",name:null,source:"71",target:"41"},{id:null,name:null,source:"71",target:"48"},{id:"228",name:null,source:"71",target:"68"},{id:"227",name:null,source:"71",target:"69"},{id:"229",name:null,source:"71",target:"70"},{id:"236",name:null,source:"72",target:"11"},{id:"234",name:null,source:"72",target:"26"},{id:"235",name:null,source:"72",target:"27"},{id:"237",name:null,source:"73",target:"48"},{id:"238",name:null,source:"74",target:"48"},{id:"239",name:null,source:"74",target:"73"},{id:"242",name:null,source:"75",target:"25"},{id:"244",name:null,source:"75",target:"41"},{id:null,name:null,source:"75",target:"48"},{id:"241",name:null,source:"75",target:"68"},{id:"240",name:null,source:"75",target:"69"},{id:"245",name:null,source:"75",target:"70"},{id:"246",name:null,source:"75",target:"71"},{id:"252",name:null,source:"76",target:"48"},{id:"253",name:null,source:"76",target:"58"},{id:"251",name:null,source:"76",target:"62"},{id:"250",name:null,source:"76",target:"63"},{id:"247",name:null,source:"76",target:"64"},{id:"248",name:null,source:"76",target:"65"},{id:"249",name:null,source:"76",target:"66"}],categories:[{name:"类目0"},{name:"类目1"},{name:"类目2"},{name:"类目3"},{name:"类目4"},{name:"类目5"},{name:"类目6"},{name:"类目7"},{name:"类目8"}],label:{normal:{position:"right"}},symbol:"circle",itemStyle:{normal:{opacity:.8}},lineStyle:{normal:{curveness:.3}}}]},{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:[[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]].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;a<d;++a){for(var t=[],l=0,r=0,o=Math.ceil(5*Math.random());r<o;++r){for(var n=[],i=0,s=0,m=Math.ceil(3*Math.random());s<m;++s){var u=Math.ceil(100*Math.random());n.push({value:u,name:a+1+"-"+(r+1)+"-"+(s+1),path:a+1+"/"+(a+1)+"-"+(r+1)+"/"+(a+1)+"-"+(r+1)+"-"+(s+1)}),i+=u}t.push({value:i,name:a+1+"-"+(r+1),path:a+1+"/"+(a+1)+"-"+(r+1),children:n}),l+=i}e.push({value:l,name:""+(a+1),path:""+(a+1),children:t})}return e}()}]}],h=0;h<g.length;++h)g[h].legend=g[h].legend||r,g[h].tooltip=g[h].tooltip||n,g[h].grid=g[h].grid||s;return g}Vue.component("config-color-list",VueColorListConfig),function(){var o=1,e=[{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"]}],n={seriesCnt:3,backgroundColor:"rgba(0, 0, 0, 0)",titleColor:"#464646",subtitleColor:"#6E7079",textColorShow:!1,textColor:"#333",markTextColor:"#eee",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],borderColor:"#ccc",borderWidth:0,visualMapColor:["#bf444c","#d88273","#f6efa6"],legendTextColor:"#333",kColor:"#eb5454",kColor0:"#47b262",kBorderColor:"#eb5454",kBorderColor0:"#47b262",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<e.length;++l)t.push({type:e[l],name:a[l]+"坐标轴",axisLineShow:"value"!==e[l]&&"log"!==e[l],axisLineColor:"#6E7079",axisTickShow:"value"!==e[l]&&"log"!==e[l],axisTickColor:"#6E7079",axisLabelShow:!0,axisLabelColor:"#6E7079",splitLineShow:"category"!==e[l]&&"time"!==e[l],splitLineColor:["#E0E6F1"],splitAreaShow:!1,splitAreaColor:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]});return t}(),axisSeperateSetting:!0,axis:null,toolboxColor:"#999",toolboxEmphasisColor:"#666",tooltipAxisColor:"#ccc",tooltipAxisWidth:1,timelineLineColor:"#DAE1F5",timelineLineWidth:2,timelineItemColor:"#A4B1D7",timelineItemColorE:"#FFF",timelineCheckColor:"#316bf3",timelineCheckBorderColor:"fff",timelineItemBorderWidth:1,timelineControlColor:"#A4B1D7",timelineControlBorderColor:"#A4B1D7",timelineControlBorderWidth:1,timelineLabelColor:"#A4B1D7"};n.axis=[n.axes[0]];for(var a=_.debounce(r,200),t=0;t<e.length;++t)p(t,!0);var i,d=new Vue({el:"#content",data:{theme:f(n),themeName:"customed",charts:[],options:[],isPauseChartUpdating:!1,copyKbd:0<navigator.userAgent.indexOf("Mac OS X")?"cmd":"ctrl",downloadable:!g()&&!h(),preDefinedThemes:e,loadedThemes:[],chartDisplay:{background:"#fff",title:"#000"}},methods:{updateCharts:r,updateSymbol:function(e){d.theme.symbol=e},selectPreDefinedTheme:function(e){for(var a=0;a<d.loadedThemes.length;++a)if(d.loadedThemes[a].id===e)return void l(d.loadedThemes[a].data);p(e,!1)},useTheme:function(){_hmt.push(["_trackEvent","theme-builder","useTheme",d.themeName]),$("#js-code").text(y()),$("#json-code").text(JSON.stringify(s(!0),null," ")),hljs.highlightBlock($("#js-code")[0]),hljs.highlightBlock($("#json-code")[0])},downloadThemeJson:function(){_hmt.push(["_trackEvent","theme-builder","download","json"]),u(s(!0),(d.themeName||"customed")+".json")},downloadThemeJs:function(){var e,a;_hmt.push(["_trackEvent","theme-builder","download","js"]),e=y(),a=(d.themeName||"customed")+".js",c(e,a,"js")},copyThemeJson:function(){b("json")},copyThemeJs:function(){b("js")},newTheme:function(){this.$set("theme",f(n)),this.$set("themeName","customed"),d.axisSeperateSettingChanges()},exportJson:function(){var e=f(d.theme);delete e.axis,u({version:o,themeName:d.themeName,theme:e},(d.themeName||"customed")+".project.json")},importJson:function(){$("#input-file").trigger("click")},importFileChanged:function(e){var a,t;e.target.files&&(".json"===(a=e.target.files[0]).name.slice(a.name.lastIndexOf("."))?((t=new FileReader).onload=function(){l(this.result)},t.onerror=function(e){alert("打开文件失败!"),console.error(e)},t.readAsText(a),$("#input-file").val("")):alert("非法后缀!请使用本网站导出的 *.json 文件。"))},axisSeperateSettingChanges:function(){d.theme.axisSeperateSetting?d.theme.axis=d.theme.axes:d.theme.axis=[d.theme.axes[0]]}}});function l(e){try{var a=JSON.parse(e);if(void 0===a.themeName&&void 0===a.version)return void alert("请使用本网站“导出配置”的 JSON 文件,而不是下载的主题文件。");if(d.$set("themeName",a.themeName||"customed"),a.version<o){var t=[],l=a.theme;for(var r in n)"axis"!==r&&(void 0!==a.theme[r]?l.attr=a.theme[r]:t.push(a.theme.attr));0<t.length?alert("导入的主题版本较低,有"+t.length+"个属性未被设置,现已使用默认值。"):console.warn("导入的主题版本较低,可能有部分属性未生效。")}d.$set("theme",a.theme),d.axisSeperateSettingChanges()}catch(e){alert("非法 JSON 格式!请使用本网站导出的 *.json 文件。"),console.error(e)}}function s(e){var a="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",r=4<=echarts.version.split(".")[0],o={itemStyle:r?{borderWidth:d.theme.symbolBorderWidth}:{normal:{borderWidth:d.theme.symbolBorderWidth}},lineStyle:r?{width:d.theme.lineWidth}:{normal:{width:d.theme.lineWidth}},symbolSize:d.theme.symbolSize,symbol:d.theme.symbol,smooth:d.theme.lineSmooth},t={borderWidth:d.theme.borderWidth,borderColor:d.theme.borderColor},l=r?{itemStyle:t}:{itemStyle:{normal:t,emphasis:t}};"halloween"===d.themeName&&(o.symbol=a,l.symbol=a);var n,i,s,m={itemStyle:{normal:{areaColor:d.theme.mapAreaColor,borderColor:d.theme.mapBorderColor,borderWidth:d.theme.mapBorderWidth},emphasis:{areaColor:d.theme.mapAreaColorE,borderColor:d.theme.mapBorderColorE,borderWidth:d.theme.mapBorderWidthE}},label:{normal:{textStyle:{color:d.theme.mapLabelColor}},emphasis:{textStyle:{color:d.theme.mapLabelColorE}}}};return{color:d.theme.color,backgroundColor:e?d.theme.backgroundColor:"transparent",textStyle:d.theme.textColorShow?{color:d.theme.textColor}:{},title:{textStyle:{color:d.theme.titleColor},subtextStyle:{color:d.theme.subtitleColor}},line:o,radar:o,bar:(s={barBorderWidth:d.theme.borderWidth,barBorderColor:d.theme.borderColor},r?{itemStyle:s}:{itemStyle:{normal:s,emphasis:s}}),pie:l,scatter:l,boxplot:l,parallel:l,sankey:l,funnel:l,gauge:l,candlestick:(i={color:d.theme.kColor,color0:d.theme.kColor0,borderColor:d.theme.kBorderColor,borderColor0:d.theme.kBorderColor0,borderWidth:d.theme.kBorderWidth},r?{itemStyle:i}:{itemStyle:{normal:i}}),graph:function(){var e=f(o);e.color=d.theme.color;var a={width:d.theme.graphLineWidth,color:d.theme.graphLineColor},t={color:d.theme.markTextColor};e.lineStyle=r?a:{normal:a},e.label=r?t:{normal:t};var l=r?e.itemStyle:e.itemStyle.normal;return l.borderWidth=d.theme.borderWidth,l.borderColor=d.theme.borderColor,e}(),map:m,geo:m,categoryAxis:u(1),valueAxis:u(2),logAxis:u(3),timeAxis:u(4),toolbox:{iconStyle:{normal:{borderColor:d.theme.toolboxColor},emphasis:{borderColor:d.theme.toolboxEmphasisColor}}},legend:{textStyle:{color:d.theme.legendTextColor}},tooltip:{axisPointer:{lineStyle:{color:d.theme.tooltipAxisColor,width:d.theme.tooltipAxisWidth},crossStyle:{color:d.theme.tooltipAxisColor,width:d.theme.tooltipAxisWidth}}},timeline:{lineStyle:{color:d.theme.timelineLineColor,width:d.theme.timelineLineWidth},itemStyle:{normal:{color:d.theme.timelineItemColor,borderWidth:d.theme.timelineItemBorderWidth},emphasis:{color:d.theme.timelineItemColorE}},controlStyle:{normal:{color:d.theme.timelineControlColor,borderColor:d.theme.timelineControlBorderColor,borderWidth:d.theme.timelineControlBorderWidth},emphasis:{color:d.theme.timelineControlColor,borderColor:d.theme.timelineControlBorderColor,borderWidth:d.theme.timelineControlBorderWidth}},checkpointStyle:{color:d.theme.timelineCheckColor,borderColor:d.theme.timelineCheckBorderColor},label:{normal:{textStyle:{color:d.theme.timelineLabelColor}},emphasis:{textStyle:{color:d.theme.timelineLabelColor}}}},visualMap:{color:d.theme.visualMapColor},dataZoom:{backgroundColor:d.theme.datazoomBackgroundColor,dataBackgroundColor:d.theme.datazoomDataColor,fillerColor:d.theme.datazoomFillColor,handleColor:d.theme.datazoomHandleColor,handleSize:d.theme.datazoomHandleWidth+"%",textStyle:{color:d.theme.datazoomLabelColor}},markPoint:(n={color:d.theme.markTextColor},r?{label:n,emphasis:{label:n}}:{label:{normal:n,emphasis:n}})};function u(e){return d.theme.axisSeperateSetting||(e=0),{axisLine:{show:d.theme.axes[e].axisLineShow,lineStyle:{color:d.theme.axes[e].axisLineColor}},axisTick:{show:d.theme.axes[e].axisTickShow,lineStyle:{color:d.theme.axes[e].axisTickColor}},axisLabel:{show:d.theme.axes[e].axisLabelShow,textStyle:{color:d.theme.axes[e].axisLabelColor}},splitLine:{show:d.theme.axes[e].splitLineShow,lineStyle:{color:d.theme.axes[e].splitLineColor}},splitArea:{show:d.theme.axes[e].splitAreaShow,areaStyle:{color:d.theme.axes[e].splitAreaColor}}}}}function m(e,a,t){var l,r,o=$(".ec-panel").eq(e);o.length&&((l=echarts.getInstanceByDom(o[0]))&&l.dispose(),(l=echarts.init(o[0],"customed")).setOption(a[e]),(r=e+1)===$(".ec-panel").length&&(r=0),r!==t&&(i=setTimeout(function(){m(r,a,t)},150)))}function r(){if(!d.isPauseChartUpdating){echarts.registerTheme("customed",s(!1));var e=getOptions(d);i&&clearTimeout(i);for(var a=$(".ec-panel").length,t=!1,l=0;l<a;++l){var r=$(".ec-panel").eq(l);if(0<r.offset().top+r.height()){m(l,e,l),t=!0;break}}t||m(0,e),d.chartDisplay.background=d.theme.backgroundColor,d.chartDisplay.title=d.theme.titleColor}}function u(e,a){c(JSON.stringify(e,null," "),a,"json")}function c(a,e,t){if(0<navigator.userAgent.indexOf("Safari")&&navigator.userAgent.indexOf("Chrome")<0)window.open("data:text/plain;charset=utf-8,"+encodeURIComponent(a));else try{var l=new Blob([a],{type:t});saveAs(l,e)}catch(e){console.error(e),window.open("data:text/plain;charset=utf-8,"+encodeURIComponent(a))}}function g(){return 0<navigator.userAgent.indexOf("MSIE")}function h(){return 0<navigator.userAgent.indexOf("Trident")}function y(){var e=(e=JSON.stringify(s(!0),null," ")).split("\n").join("\n ");return"(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('"+d.themeName+"', "+e+");\n}));\n"}function b(e){var a,t;function l(e){$("#"+e).fadeIn(),setTimeout(function(){$("#"+e).fadeOut()},1e4)}window.getSelection?((t=document.createRange()).selectNode($("#"+e+"-code")[0]),(a=window.getSelection()).removeAllRanges(),a.addRange(t)):document.selection&&((t=document.body.createTextRange()).moveToElementText($("#"+e+"-code")[0]),t.select()),$(".code-btn label").hide(),g()||h()||!document.execCommand("copy")?l("copy-"+e+"-fail"):(l("copy-"+e+"-success"),window.getSelection?window.getSelection().removeAllRanges():document.selection.empty())}function f(e){return $.extend(!0,{},e)}function p(a,t){$.ajax({url:"./theme-builder/themes/"+e[a].name+".json",dataType:"text",success:function(e){d.loadedThemes.push({id:a,data:e}),t||l(e)}})}d.$watch("theme",a,{deep:!0}),d.axisSeperateSettingChanges()}();