/*
 * 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=new Rickshaw.Graph({element:document.querySelector("#chartBar1"),renderer:"bar",max:80,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:"#26A2E2"}]});e.render(),new ResizeSensor($(".br-mainpanel"),function(){e.configure({width:$("#chartBar1").width(),height:$("#chartBar1").height()}),e.render()});var x=new Rickshaw.Graph({element:document.querySelector("#chartBar2"),renderer:"bar",max:80,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:"#8CC343"}]});x.render(),new ResizeSensor($(".br-mainpanel"),function(){x.configure({width:$("#chartBar2").width(),height:$("#chartBar2").height()}),x.render()});var y=new Rickshaw.Graph({element:document.querySelector("#chartStackedBar1"),renderer:"bar",max:100,series:[{data:[{x:0,y:20},{x:1,y:30},{x:2,y:10},{x:3,y:15},{x:4,y:10},{x:5,y:20},{x:6,y:15},{x:7,y:20},{x:8,y:25},{x:9,y:20},{x:10,y:25},{x:11,y:10},{x:12,y:15},{x:13,y:10}],color:"#466C79"},{data:[{x:0,y:10},{x:1,y:10},{x:2,y:15},{x:3,y:20},{x:4,y:12},{x:5,y:20},{x:6,y:10},{x:7,y:15},{x:8,y:20},{x:9,y:25},{x:10,y:15},{x:11,y:10},{x:12,y:20},{x:13,y:25}],color:"#26A2E2"},{data:[{x:0,y:10},{x:1,y:15},{x:2,y:15},{x:3,y:20},{x:4,y:32},{x:5,y:30},{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:20},{x:13,y:25}],color:"#8CC343"}]});y.render(),new ResizeSensor($(".br-mainpanel"),function(){y.configure({width:$("#chartStackedBar1").width(),height:$("#chartStackedBar1").height()}),y.render()});var r=new Rickshaw.Graph({element:document.querySelector("#chartStackedBar2"),renderer:"bar",max:100,series:[{data:[{x:0,y:20},{x:1,y:30},{x:2,y:10},{x:3,y:15},{x:4,y:10},{x:5,y:20},{x:6,y:15},{x:7,y:20},{x:8,y:25},{x:9,y:20},{x:10,y:25},{x:11,y:10},{x:12,y:15},{x:13,y:10}],color:"#065381"},{data:[{x:0,y:10},{x:1,y:10},{x:2,y:15},{x:3,y:20},{x:4,y:12},{x:5,y:20},{x:6,y:10},{x:7,y:15},{x:8,y:20},{x:9,y:25},{x:10,y:15},{x:11,y:10},{x:12,y:20},{x:13,y:25}],color:"#8B103E"},{data:[{x:0,y:10},{x:1,y:15},{x:2,y:15},{x:3,y:20},{x:4,y:32},{x:5,y:30},{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:20},{x:13,y:25}],color:"#E34856"}]});r.render(),new ResizeSensor($(".br-mainpanel"),function(){r.configure({width:$("#chartStackedBar2").width(),height:$("#chartStackedBar2").height()}),r.render()});var a=new Rickshaw.Graph({element:document.querySelector("#chartMultiBar1"),renderer:"bar",stack:!1,max:60,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:"#065381"},{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:"#34B2E4"}]});a.render(),new ResizeSensor($(".br-mainpanel"),function(){a.configure({width:$("#chartMultiBar1").width(),height:$("#chartMultiBar1").height()}),a.render()});var t=new Rickshaw.Graph({element:document.querySelector("#chartMultiBar2"),renderer:"bar",stack:!1,max:60,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:"#0282C9"},{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:"#E97C9C"},{data:[{x:0,y:20},{x:1,y:50},{x:2,y:25},{x:3,y:10},{x:4,y:22},{x:5,y:40},{x:6,y:10},{x:7,y:25},{x:8,y:40}],color:"#818AC3"}]});t.render(),new ResizeSensor($(".br-mainpanel"),function(){t.configure({width:$("#chartMultiBar2").width(),height:$("#chartMultiBar2").height()}),t.render()});var n=new Rickshaw.Graph({element:document.querySelector("#chartLine1"),renderer:"line",max:80,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:"#26A2E2"}]});n.render(),new ResizeSensor($(".br-mainpanel"),function(){n.configure({width:$("#chartLine1").width(),height:$("#chartLine1").height()}),n.render()});var i=new Rickshaw.Graph({element:document.querySelector("#chartLine2"),renderer:"line",stack:!1,max:60,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:"#0282C9"},{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:"#E97C9C"}]});i.render(),new ResizeSensor($(".br-mainpanel"),function(){i.configure({width:$("#chartLine2").width(),height:$("#chartLine2").height()}),i.render()});var c=new Rickshaw.Graph({element:document.querySelector("#chartArea1"),renderer:"area",max:80,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:"#26A2E2"}]});c.render(),new ResizeSensor($(".br-mainpanel"),function(){c.configure({width:$("#chartArea1").width(),height:$("#chartArea1").height()}),c.render()});var h=new Rickshaw.Graph({element:document.querySelector("#chartArea2"),renderer:"area",stack:!1,max:80,series:[{data:[{x:0,y:45},{x:1,y:60},{x:2,y:55},{x:3,y:40},{x:4,y:52},{x:5,y:45},{x:6,y:35},{x:7,y:25},{x:8,y:30},{x:9,y:45},{x:10,y:40},{x:11,y:30},{x:12,y:45},{x:13,y:35}],color:"#0282C9"},{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:"#E97C9C"}]});h.render(),new ResizeSensor($(".br-mainpanel"),function(){h.configure({width:$("#chartArea2").width(),height:$("#chartArea2").height()}),h.render()})});