HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u41188965 (3074900)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /homepages/16/d176908298/htdocs/wdev/wp-content/plugins/statify/js/dashboard.min.js
(function(){var labels=[];var data=[];var statifyDataTable=jQuery('#statify_chart_data');var maxValue;var chartWidth;var fullWidth=!0;var pointRadius=4;var chart;if(!statifyDataTable.length){return}
jQuery('th',statifyDataTable).each(function(){labels.push(jQuery(this).text())});jQuery('td',statifyDataTable).each(function(){data.push(jQuery(this).text())});maxValue=Math.max.apply(Math,data);chartWidth=jQuery('#statify_chart').width();if(chartWidth<data.length*4){fullWidth=!1;pointRadius=3}else if(chartWidth<data.length*8){pointRadius=2}
chart=new Chartist.Line('#statify_chart',{labels:labels,series:[data,],},{low:0,showArea:!0,fullWidth:fullWidth,width:(fullWidth?null:5*data.length),axisX:{showGrid:!1,showLabel:!1,offset:0,},axisY:{showGrid:!0,showLabel:!0,type:Chartist.FixedScaleAxis,low:0,high:maxValue+1,ticks:[0,Math.round(maxValue*1/4),Math.round(maxValue*2/4),Math.round(maxValue*3/4),maxValue,],offset:30,},plugins:[Chartist.plugins.tooltip({appendToBody:!0,class:'statify-chartist-tooltip',}),],});chart.on('draw',function(d){var circle;if('point'===d.type){circle=new Chartist.Svg('circle',{cx:[d.x],cy:[d.y],r:[pointRadius],'ct:value':d.value.y+' '+(d.value.y>1?statify_translations.pageviews:statify_translations.pageview),'ct:meta':labels[d.index],},'ct-point');d.element.replace(circle)}})}())