/*
 * Copyright (c) 2020 aureliancnx
 *
 * MIT LICENSE
 *
 * This project is part of aureliancnx.
 * See https://github.com/aureliancnx/Bubulle-Norminette for further info.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE. */
$(function(){"use strict";var e=[{name:"Oranges",type:"bar",data:[20,20,36,12,15]},{name:"Apples",type:"bar",data:[8,5,25,10,10]}],t=document.getElementById("chartBar1"),i=echarts.init(t),a={grid:{top:"6",right:"0",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:e};i.setOption(a);var l=[{name:"Oranges",type:"bar",data:[20,20,36,12,15]},{name:"Apples",type:"bar",data:[8,5,25,10,10]},{name:"Grapes",type:"bar",data:[15,10,20,20,25]}],o=document.getElementById("chartBar2"),n=echarts.init(o),r={grid:{top:"6",right:"0",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:l,color:["#693391","#E7016E","#109EDC"]};n.setOption(r);var s={grid:{top:"6",right:"0",bottom:"17",left:"32"},xAxis:{type:"value",axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{type:"category",data:["2006","2008","2010","2012","2014"],splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:e},c=document.getElementById("chartBar3"),d=echarts.init(c);d.setOption(s);var y={grid:{top:"6",right:"0",bottom:"17",left:"32"},xAxis:{type:"value",axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{type:"category",data:["2006","2008","2010","2012","2014"],splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:l,color:["#693391","#E7016E","#109EDC"]},m=document.getElementById("chartBar4"),p=echarts.init(m);p.setOption(y);var S=[{name:"Oranges",type:"bar",stack:"Stack",data:[20,20,36,12,15]},{name:"Apples",type:"bar",stack:"Stack",data:[8,5,25,10,10]},{name:"Grapes",type:"bar",stack:"Stack",data:[15,10,20,20,25]}],x={grid:{top:"6",right:"0",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:S},L=document.getElementById("chartBar5"),b=echarts.init(L);b.setOption(x);var f={grid:{top:"6",right:"10",bottom:"17",left:"32"},xAxis:{type:"value",axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{type:"category",data:["2006","2008","2010","2012","2014"],splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:S},g=document.getElementById("chartBar6"),h=echarts.init(g);h.setOption(f);var u={grid:{top:"6",right:"0",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014","2015","2016","2017"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:[{name:"Oranges",type:"line",data:[20,20,36,18,15,20,25,20]}]},z=document.getElementById("chartLine1"),A=echarts.init(z);A.setOption(u);var v={grid:{top:"6",right:"0",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014","2015","2016","2017"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:[{name:"Oranges",type:"line",smooth:!0,data:[20,20,36,18,15,20,25,20]}],color:["#693391"]},O=document.getElementById("chartLine2"),B=echarts.init(O);B.setOption(v);var E={grid:{top:"6",right:"12",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014","2016"],boundaryGap:!1,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:[{name:"Oranges",type:"line",data:[20,20,36,12,15,25],lineStyle:{normal:{width:1}},itemStyle:{normal:{areaStyle:{type:"default"}}}},{name:"Apples",type:"line",data:[8,5,25,10,10,20],lineStyle:{normal:{width:1}},itemStyle:{normal:{areaStyle:{type:"default"}}}}]},I=document.getElementById("chartArea1"),w=echarts.init(I);w.setOption(E);var k={grid:{top:"6",right:"12",bottom:"17",left:"25"},xAxis:{data:["2006","2008","2010","2012","2014","2016"],boundaryGap:!1,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},yAxis:{splitLine:{lineStyle:{color:"#ddd"}},axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10,color:"#666"}},series:[{name:"Oranges",type:"line",smooth:!0,data:[20,20,36,12,15,25],lineStyle:{normal:{width:1}},itemStyle:{normal:{areaStyle:{type:"default"}}}},{name:"Apples",type:"line",smooth:!0,data:[8,5,25,10,10,20],lineStyle:{normal:{width:1}},itemStyle:{normal:{areaStyle:{type:"default"}}}}],color:["#693391","#E7016E"]},F=document.getElementById("chartArea2"),G=echarts.init(F);G.setOption(k);var R={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)",textStyle:{fontSize:11,fontFamily:"Roboto, sans-serif"}},series:[{name:"Fruits",type:"pie",radius:"80%",center:["50%","57.5%"],data:[{value:335,name:"Apple"},{value:310,name:"Orange"},{value:234,name:"Grapes"},{value:135,name:"Lemon"},{value:154,name:"Banana"}],label:{normal:{fontFamily:"Roboto, sans-serif",fontSize:11}},labelLine:{normal:{show:!1}},markLine:{lineStyle:{normal:{width:1}}}}]},D=document.getElementById("chartPie"),C=echarts.init(D);C.setOption(R);var P={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)",textStyle:{fontSize:11,fontFamily:"Roboto, sans-serif"}},series:[{name:"Fruits",type:"pie",radius:["40%","80%"],center:["50%","57.5%"],data:[{value:335,name:"Apple"},{value:310,name:"Orange"},{value:234,name:"Grapes"},{value:135,name:"Lemon"},{value:154,name:"Banana"}],label:{normal:{fontFamily:"Roboto, sans-serif",fontSize:11}},labelLine:{normal:{show:!1}},markLine:{lineStyle:{normal:{width:1}}}}]},j=document.getElementById("chartDonut"),q=echarts.init(j);q.setOption(P),new ResizeSensor($(".br-mainpanel"),function(){i.resize(),n.resize(),d.resize(),p.resize(),b.resize(),h.resize(),A.resize(),B.resize(),w.resize(),G.resize(),C.resize(),q.resize()})});