/*! * stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack) * Copyright 2018 PIXINVENT * Licensed under the Themeforest Standard Licenses */ $(window).on("load",function(){function plotWithOptions(){$.plot("#stacked-bar",[d1,d2,d3],{series:{stack:stack,lines:{show:lines,fill:!0,steps:steps,lineWidth:0},bars:{show:bars,barWidth:.6,lineWidth:0,fill:1}},grid:{borderWidth:1,borderColor:"#e9e9e9",color:"#999",minBorderMargin:20,labelMargin:10,margin:{top:8,bottom:20,left:20}},colors:["#00A5A8","#666EE8","#40C7CA"]})}for(var d1=[],i=0;i<=10;i+=1)d1.push([i,parseInt(30*Math.random())]);for(var d2=[],i=0;i<=10;i+=1)d2.push([i,parseInt(30*Math.random())]);for(var d3=[],i=0;i<=10;i+=1)d3.push([i,parseInt(30*Math.random())]);var stack=0,bars=!0,lines=!1,steps=!1;plotWithOptions()});