Socialvoid-Web-Assets/assets/js/pages/flot.init.js

1 line
11 KiB
JavaScript
Raw Normal View History

2021-11-18 21:01:30 +01:00
$(function(){"use strict";if($("#flot-bar-1").length&&$.plot("#flot-bar-1",[{data:[[0,3],[2,8],[4,5],[6,13],[8,5],[10,7],[12,4],[14,6]]}],{series:{bars:{show:!0,lineWidth:0,barWidth:.3,fillColor:"#00a7e1"}},grid:{borderWidth:1,borderColor:"rgba(123, 145, 158,0.1)",labelMargin:15},yaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},xaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}}),$("#flot-bar-2").length&&$.plot("#flot-bar-2",[{data:[[0,3],[2,8],[4,5],[6,13],[8,5],[10,7],[12,8],[14,10]],bars:{show:!0,lineWidth:0,barWidth:.3,fillColor:"#3ddc97"},label:"New Customer"},{data:[[1,5],[3,7],[5,10],[7,7],[9,9],[11,5],[13,4],[15,6]],bars:{show:!0,lineWidth:0,barWidth:.3,fillColor:"#7c8a96"},label:"Returning Customer"}],{grid:{show:!0,aboveData:!1,labelMargin:5,axisMargin:0,borderWidth:1,minBorderMargin:5,clickable:!0,hoverable:!0,autoHighlight:!1,mouseActiveRadius:20,borderColor:"rgba(123, 145, 158,0.1)"},series:{stack:0},legend:{show:!1},yaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},xaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}}),$("#flot-line-1").length){var o=[[0,2],[1,3],[2,6],[3,5],[4,7],[5,8],[6,10]],e=[[0,1],[1,2],[2,5],[3,3],[4,5],[5,6],[6,9]];$.plot($("#flot-line-1"),[{data:o,label:"New Customer",color:"#3051d3"},{data:e,label:"Returning Customer",color:"#e4cc37"}],{series:{lines:{show:!0,lineWidth:1},shadowSize:0},points:{show:!1},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,labelFormatter:function(o,e){return o+"  "},width:30,height:2},grid:{hoverable:!0,clickable:!0,borderColor:"rgba(123, 145, 158,0.1)",borderWidth:0,labelMargin:5,backgroundColor:"transparent"},yaxis:{min:0,max:15,tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},xaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}})}if($("#flot-line-2").length)$.plot($("#flot-line-2"),[{data:[[0,2],[1,3],[2,6],[3,5],[4,7],[5,8],[6,10]],label:"New Customer",color:"#f06543"},{data:[[0,1],[1,2],[2,5],[3,3],[4,5],[5,6],[6,9]],label:"Returning Customer",color:"#00a7e1"}],{series:{lines:{show:!0,lineWidth:0},splines:{show:!0,tension:.4,lineWidth:1},shadowSize:0},points:{show:!1},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,labelFormatter:function(o,e){return o+"  "},width:30,height:2},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}},grid:{hoverable:!0,clickable:!0,borderColor:"rgba(123, 145, 158,0.1)",borderWidth:0,labelMargin:5,backgroundColor:"transparent"},yaxis:{min:0,max:20,tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},xaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}}});if($("#flot-line-3").length)$.plot($("#flot-line-3"),[{data:[[0,10],[1,7],[2,8],[3,9],[4,6],[5,5],[6,7]],label:"New Customer",color:"#f06543"},{data:[[0,8],[1,5],[2,6],[3,8],[4,4],[5,3],[6,6]],label:"Returning Customer",color:"#3ddc97"}],{series:{lines:{show:!0,lineWidth:2},shadowSize:0},points:{show:!0},legend:{position:"ne",margin:[0,-32],noColumns:0,labelBoxBorderColor:null,labelFormatter:function(o,e){return o+"  "},width:30,height:2},tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}},grid:{hoverable:!0,clickable:!0,borderColor:"rgba(123, 145, 158,0.1)",borderWidth:0,labelMargin:5,backgroundColor:"transparent"},yaxis:{min:0,max:15,tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}},xaxis:{tickColor:"rgba(123, 145, 158,0.1)",font:{color:"#7b919e",size:10}}});if($("#flot-line-4").length)$.plot($("#flot-line-4"),[{data:[[0,10],[1,7],[2,8],[3,9],[4,6],[5,5],[6,7]],label:"New Customer",color:"#00a7e1"},{data:[[0,8],[1,5],[2,6],[3,8],[4,4],[5,3],[6,6]],label:"Returning Customer",color:"#3051d3"}],{series:{lines:{show:!1},splines:{show:!0,tension:.4,lineWidth:2},shadowSize:0},points:{s