template.js.flot.jquery.flot.categories.min.js Maven / Gradle / Ivy
(function(d){var i={xaxis:{categories:null},yaxis:{categories:null}};function g(p,o,n,q){var j=o.xaxis.options.mode=="categories",r=o.yaxis.options.mode=="categories";if(!(j||r)){return}var t=q.format;if(!t){var u=o;t=[];t.push({x:true,number:true,required:true});t.push({y:true,number:true,required:true});if(u.bars.show||(u.lines.show&&u.lines.fill)){var k=!!((u.bars.show&&u.bars.zero)||(u.lines.show&&u.lines.zero));t.push({y:true,number:true,required:false,defaultValue:0,autoscale:k});if(u.bars.horizontal){delete t[t.length-1].y;t[t.length-1].x=true}}q.format=t}for(var l=0;ll){l=k[j]}}return l+1}function e(m){var l=[];for(var k in m.categories){var j=m.categories[k];if(j>=m.min&&j<=m.max){l.push([j,k])}}l.sort(function(o,n){return o[0]-n[0]});return l}function f(l,m,n){if(l[m].options.mode!="categories"){return}if(!l[m].categories){var q={},p=l[m].options.categories||{};if(d.isArray(p)){for(var k=0;k