template.js.flot.jquery.flot.categories.min.js Maven / Gradle / Ivy
/*
Flot plugin for plotting textual data or categories. Consider a
dataset like [["February", 34], ["March", 20], ...]. This plugin
allows you to plot such a dataset directly.
*/
(function(d){var i={xaxis:{categories:null},yaxis:{categories:null}};function g(o,n,l,p){var j=n.xaxis.options.mode=="categories",q=n.yaxis.options.mode=="categories";if(!(j||q)){return}var r=p.format;if(!r){var t=n;r=[];r.push({x:true,number:true,required:true});r.push({y:true,number:true,required:true});if(t.bars.show||(t.lines.show&&t.lines.fill)){r.push({y:true,number:true,required:false,defaultValue:0});if(t.bars.horizontal){delete r[r.length-1].y;r[r.length-1].x=true}}p.format=r}for(var k=0;kl){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