File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/yogi/dist/js/pages/flot-data.min.js
Back
var data=[],totalPoints=300;function getRandomData(){for(0<data.length&&(data=data.slice(1));data.length<totalPoints;){var a=(0<data.length?data[data.length-1]:50)+10*Math.random()-5;a<0?a=0:100<a&&(a=100),data.push(a)}for(var t=[],o=0;o<data.length;++o)t.push([o,data[o]]);return t}var updateInterval=30;$("#updateInterval").val(updateInterval).on("change",function(){var a=$(this).val();a&&!isNaN(+a)&&((updateInterval=+a)<1?updateInterval=1:3e3<updateInterval&&(updateInterval=3e3),$(this).val(""+updateInterval))});var plot=$.plot("#placeholder",[getRandomData()],{series:{shadowSize:0},yaxis:{min:0,max:100},xaxis:{show:!1},colors:["#26c6da"],grid:{color:"#AFAFAF",hoverable:!0,borderWidth:0,backgroundColor:"#FFF"},tooltip:!0,tooltipOpts:{content:"Y: %y",defaultTheme:!1}});function update(){plot.setData([getRandomData()]),plot.draw(),setTimeout(update,updateInterval)}update(),$(function(){console.log("document ready");!function(){for(var a=[],t=[],o=0;o<12;o+=.2)a.push([o,Math.sin(o+0)]),t.push([o,Math.cos(o+0)]);$.plot($("#flot-line-chart"),[{data:a,label:"sin(x)"},{data:t,label:"cos(x)"}],{series:{lines:{show:!0},points:{show:!0}},grid:{hoverable:!0},yaxis:{min:-1.2,max:1.2},colors:["#009efb","#26c6da"],grid:{color:"#AFAFAF",hoverable:!0,borderWidth:0,backgroundColor:"#FFF"},tooltip:!0,tooltipOpts:{content:"'%s' of %x.1 is %y.4",shifts:{x:-60,y:25}}})}()}),$(function(){$.plot($("#flot-pie-chart"),[{label:"Series 0",data:10,color:"#4f5467"},{label:"Series 1",data:1,color:"#26c6da"},{label:"Series 2",data:3,color:"#009efb"},{label:"Series 3",data:1,color:"#7460ee"}],{series:{pie:{innerRadius:.5,show:!0}},grid:{hoverable:!0},color:null,tooltip:!0,tooltipOpts:{content:"%p.0%, %s",shifts:{x:20,y:0},defaultTheme:!1}})}),$(function(){var a=$("#flot-line-chart-moving"),e=a.outerWidth()/2||300,r=[];function t(){for(r.length&&(r=r.slice(1));r.length<e;){var a=(r.length?r[r.length-1]:50)+10*Math.random()-5;r.push(a<0?0:100<a?100:a)}for(var t=[],o=0;o<r.length;++o)t.push([o,r[o]]);return t}series=[{data:t(),lines:{fill:!0}}];var o=$.plot(a,series,{colors:["#26c6da"],grid:{borderWidth:0,minBorderMargin:20,labelMargin:10,backgroundColor:{colors:["#fff","#fff"]},margin:{top:8,bottom:20,left:20},markings:function(a){for(var t=[],o=a.xaxis,e=Math.floor(o.min);e<o.max;e+=1*o.tickSize)t.push({xaxis:{from:e,to:e+o.tickSize},color:"#fff"});return t}},xaxis:{tickFormatter:function(){return""}},yaxis:{min:0,max:110},legend:{show:!0}});setInterval(function(){series[0].data=t(),o.setData(series),o.draw()},40)}),$(function(){$.plot($("#flot-bar-chart"),[{label:"bar",color:"#009efb",data:[[13545216e5,1e3],[135504e7,2e3],[13552236e5,3e3],[13553064e5,4e3],[13554873e5,5e3],[13555719e5,6e3]]}],{series:{bars:{show:!0,barWidth:432e5}},xaxis:{mode:"time",timeformat:"%m/%d",minTickSize:[2,"day"]},grid:{hoverable:!0},legend:{show:!1},grid:{color:"#AFAFAF",hoverable:!0,borderWidth:0,backgroundColor:"#FFF"},tooltip:!0,tooltipOpts:{content:"x: %x, y: %y"}})}),$(function(){for(var a=[],t=0;t<=10;t+=1)a.push([t,parseInt(60*Math.random())]);var o=[];for(t=0;t<=10;t+=1)o.push([t,parseInt(40*Math.random())]);var e=[];for(t=0;t<=10;t+=1)e.push([t,parseInt(25*Math.random())]);var r=new Array;r.push({label:"Data One",data:a,bars:{order:1}}),r.push({label:"Data Two",data:o,bars:{order:2}}),r.push({label:"Data Three",data:e,bars:{order:3}});var l={bars:{show:!0,barWidth:.2,fill:1},grid:{show:!0,aboveData:!1,labelMargin:5,axisMargin:0,borderWidth:1,minBorderMargin:5,clickable:!0,hoverable:!0,autoHighlight:!1,mouseActiveRadius:20,borderColor:"#f5f5f5"},series:{stack:0},legend:{position:"ne",margin:[0,0],noColumns:0,labelBoxBorderColor:null,labelFormatter:function(a,t){return a+" "},width:30,height:5},yaxis:{tickColor:"#f5f5f5",font:{color:"#bdbdbd"}},xaxis:{tickColor:"#f5f5f5",font:{color:"#bdbdbd"}},colors:["#4F5467","#009efb","#26c6da"],tooltip:!0,tooltipOpts:{content:"%s : %y.0",shifts:{x:-30,y:-50}}};$.plot($(".sales-bars-chart"),r,l)});
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings