PluginProbe
Statify / 1.6.3
Statify v1.6.3
2.0.2 2.0.1 trunk 0.7 0.8 0.9 1.0 1.2.8 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 All 32 releases
statify / js / dashboard.min.js

dashboard.min.js in Statify 1.6.3, at js/dashboard.min.js

2 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function(){var labels=[];var data=[];var statify_data_table=jQuery('#statify_chart_data');if(!statify_data_table.length){return}
2 jQuery('th',statify_data_table).each(function(){labels.push(jQuery(this).text())});jQuery('td',statify_data_table).each(function(){data.push(jQuery(this).text())});var maxValue=Math.max.apply(Math,data);var chart=new Chartist.Line('#statify_chart',{labels:labels,series:[data]},{low:0,showArea:!0,fullWidth:!0,axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!0,type:Chartist.FixedScaleAxis,low:0,high:maxValue+1,ticks:[maxValue],offset:15},plugins:[Chartist.plugins.tooltip({appendToBody:!0,class:'statify-chartist-tooltip'})]});var pointRadius=4;if(data.length>365)pointRadius=0;else if(data.length>180)pointRadius=1;else if(data.length>90)pointRadius=2;chart.on('draw',function(data){if('point'===data.type){var circle=new Chartist.Svg('circle',{cx:[data.x],cy:[data.y],r:[pointRadius],'ct:value':data.value.y+' '+(data.value.y>1?statify_translations.pageviews:statify_translations.pageview),'ct:meta':labels[data.index]},'ct-point');data.element.replace(circle)}})})()