/*
 * 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";$("#spark1").sparkline("html",{type:"bar",barWidth:8,height:30,barColor:"#29B0D0",chartRangeMax:12}),$("#spark2").sparkline("html",{type:"bar",barWidth:8,height:30,barColor:"#6F42C1",chartRangeMax:12}),$("#spark3").sparkline("html",{type:"bar",barWidth:8,height:30,barColor:"#20C997",chartRangeMax:12}),$("#spark4").sparkline("html",{type:"bar",barWidth:8,height:30,barColor:"#0866C6",chartRangeMax:12}),$(".peity-line").peity("line"),$(".peity-donut").peity("donut");var e=new Rickshaw.Graph({element:document.querySelector("#rickshaw1"),renderer:"bar",stack:!1,max:50,series:[{data:[{x:0,y:20},{x:1,y:25},{x:2,y:10},{x:3,y:15},{x:4,y:20},{x:5,y:40},{x:6,y:15},{x:7,y:40},{x:8,y:25}],color:"#5058AB"},{data:[{x:0,y:10},{x:1,y:30},{x:2,y:45},{x:3,y:30},{x:4,y:42},{x:5,y:20},{x:6,y:30},{x:7,y:15},{x:8,y:20}],color:"#14A0C1"}]});e.render(),new ResizeSensor($(".br-mainpanel"),function(){e.configure({width:$("#rickshaw1").width(),height:$("#rickshaw1").height()}),e.render()});var r=new Rickshaw.Graph({element:document.querySelector("#rickshaw2"),renderer:"area",max:50,series:[{data:[{x:0,y:40},{x:1,y:49},{x:2,y:38},{x:3,y:30},{x:4,y:32},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40},{x:13,y:25}],color:"#01CB99"}]});r.render(),new ResizeSensor($(".br-mainpanel"),function(){r.configure({width:$("#rickshaw2").width(),height:$("#rickshaw2").height()}),r.render()});var y=new Rickshaw.Graph({element:document.querySelector("#ch5"),renderer:"area",max:80,series:[{data:[{x:0,y:40},{x:1,y:45},{x:2,y:30},{x:3,y:40},{x:4,y:50},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40}],color:"#0866C6"}]});y.render(),new ResizeSensor($(".br-mainpanel"),function(){y.configure({width:$("#ch5").width(),height:$("#ch5").height()}),y.render()});var x=new Rickshaw.Graph({element:document.querySelector("#ch6"),renderer:"area",max:80,series:[{data:[{x:0,y:40},{x:1,y:45},{x:2,y:30},{x:3,y:40},{x:4,y:50},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40}],color:"#6F42C1"}]});x.render(),new ResizeSensor($(".br-mainpanel"),function(){x.configure({width:$("#ch6").width(),height:$("#ch6").height()}),x.render()});var n=new Rickshaw.Graph({element:document.querySelector("#ch7"),renderer:"area",max:80,series:[{data:[{x:0,y:40},{x:1,y:45},{x:2,y:30},{x:3,y:40},{x:4,y:50},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40}],color:"#20C997"}]});n.render(),new ResizeSensor($(".br-mainpanel"),function(){n.configure({width:$("#ch7").width(),height:$("#ch7").height()}),n.render()});var a=new Rickshaw.Graph({element:document.querySelector("#ch8"),renderer:"area",max:50,series:[{data:[{x:0,y:40},{x:1,y:49},{x:2,y:38},{x:3,y:30},{x:4,y:32},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:35}],color:"#0866C6"}]});a.render(),new ResizeSensor($(".br-mainpanel"),function(){a.configure({width:$("#ch8").width(),height:$("#ch8").height()}),a.render()});var h=new Rickshaw.Graph({element:document.querySelector("#ch9"),renderer:"area",max:50,series:[{data:[{x:0,y:35},{x:1,y:49},{x:2,y:38},{x:3,y:30},{x:4,y:32},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40}],color:"#0866C6"}]});h.render(),new ResizeSensor($(".br-mainpanel"),function(){h.configure({width:$("#ch9").width(),height:$("#ch9").height()}),h.render()});var i=new Rickshaw.Graph({element:document.querySelector("#ch10"),renderer:"bar",max:50,series:[{data:[{x:0,y:40},{x:1,y:49},{x:2,y:38},{x:3,y:30},{x:4,y:32},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:35}],color:"#6F42C1"}]});i.render(),new ResizeSensor($(".br-mainpanel"),function(){i.configure({width:$("#ch10").width(),height:$("#ch10").height()}),i.render()});var t=new Rickshaw.Graph({element:document.querySelector("#ch11"),renderer:"bar",max:50,series:[{data:[{x:0,y:35},{x:1,y:49},{x:2,y:38},{x:3,y:30},{x:4,y:32},{x:5,y:40},{x:6,y:20},{x:7,y:10},{x:8,y:20},{x:9,y:25},{x:10,y:35},{x:11,y:20},{x:12,y:40}],color:"#6F42C1"}]});t.render(),new ResizeSensor($(".br-mainpanel"),function(){t.configure({width:$("#ch11").width(),height:$("#ch11").height()}),t.render()})});