jquery_cheats 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/app/assets/javascripts/jquery_cheats/jquery_cheats.js +1 -1
- data/app/assets/javascripts/jquery_cheats/replacementContextMenu.js +62 -0
- data/jquery_cheats.gemspec +2 -2
- data/lib/jquery_cheats/jquery_cheats.rb +58 -0
- data/vendor/assets/javascripts/jqplot/excanvas.js +1438 -0
- data/vendor/assets/javascripts/jqplot/jquery.jqplot.js +10901 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.js +312 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.js +747 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.js +234 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.js +754 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +202 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.js +242 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.js +864 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.js +448 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.js +636 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.js +115 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.js +1093 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.js +702 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.js +800 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.js +224 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.js +241 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.js +938 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.js +454 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.json2.js +475 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.json2.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.js +528 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.js +610 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.js +436 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.js +372 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.js +899 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.js +362 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.js +730 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.js +423 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.js +490 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.min.js +57 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.js +222 -0
- data/vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.min.js +57 -0
- data/vendor/assets/javascripts/jquery_cheats/spinjs/spin.min.js +1 -1
- data/vendor/assets/stylesheets/jquery.jqplot.css +259 -0
- metadata +66 -3
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* jqPlot
|
3
|
+
* Pure JavaScript plotting plugin using jQuery
|
4
|
+
*
|
5
|
+
* Version: 1.0.0b2_r1012
|
6
|
+
*
|
7
|
+
* Copyright (c) 2009-2011 Chris Leonello
|
8
|
+
* jqPlot is currently available for use in all personal or commercial projects
|
9
|
+
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
|
10
|
+
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
|
11
|
+
* choose the license that best suits your project and use it accordingly.
|
12
|
+
*
|
13
|
+
* Although not required, the author would appreciate an email letting him
|
14
|
+
* know of any substantial use of jqPlot. You can reach the author at:
|
15
|
+
* chris at jqplot dot com or see http://www.jqplot.com/info.php .
|
16
|
+
*
|
17
|
+
* If you are feeling kind and generous, consider supporting the project by
|
18
|
+
* making a donation at: http://www.jqplot.com/donate.php .
|
19
|
+
*
|
20
|
+
* sprintf functions contained in jqplot.sprintf.js by Ash Searle:
|
21
|
+
*
|
22
|
+
* version 2007.04.27
|
23
|
+
* author Ash Searle
|
24
|
+
* http://hexmen.com/blog/2007/03/printf-sprintf/
|
25
|
+
* http://hexmen.com/js/sprintf.js
|
26
|
+
* The author (Ash Searle) has placed this code in the public domain:
|
27
|
+
* "This code is unrestricted: you are free to use it however you like."
|
28
|
+
*
|
29
|
+
* included jsDate library by Chris Leonello:
|
30
|
+
*
|
31
|
+
* Copyright (c) 2010-2011 Chris Leonello
|
32
|
+
*
|
33
|
+
* jsDate is currently available for use in all personal or commercial projects
|
34
|
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
35
|
+
* choose the license that best suits your project and use it accordingly.
|
36
|
+
*
|
37
|
+
* jsDate borrows many concepts and ideas from the Date Instance
|
38
|
+
* Methods by Ken Snyder along with some parts of Ken's actual code.
|
39
|
+
*
|
40
|
+
* Ken's origianl Date Instance Methods and copyright notice:
|
41
|
+
*
|
42
|
+
* Ken Snyder (ken d snyder at gmail dot com)
|
43
|
+
* 2008-09-10
|
44
|
+
* version 2.0.2 (http://kendsnyder.com/sandbox/date/)
|
45
|
+
* Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/)
|
46
|
+
*
|
47
|
+
* jqplotToImage function based on Larry Siden's export-jqplot-to-png.js.
|
48
|
+
* Larry has generously given permission to adapt his code for inclusion
|
49
|
+
* into jqPlot.
|
50
|
+
*
|
51
|
+
* Larry's original code can be found here:
|
52
|
+
*
|
53
|
+
* https://github.com/lsiden/export-jqplot-to-png
|
54
|
+
*
|
55
|
+
*
|
56
|
+
*/
|
57
|
+
(function(c){if(c.jqplot.PyramidAxisRenderer===undefined){c.ajax({url:c.jqplot.pluginLocation+"jqplot.pyramidAxisRenderer.js",dataType:"script",async:false})}if(c.jqplot.PyramidGridRenderer===undefined){c.ajax({url:c.jqplot.pluginLocation+"jqplot.pyramidGridRenderer.js",dataType:"script",async:false})}c.jqplot.PyramidRenderer=function(){c.jqplot.LineRenderer.call(this)};c.jqplot.PyramidRenderer.prototype=new c.jqplot.LineRenderer();c.jqplot.PyramidRenderer.prototype.constructor=c.jqplot.PyramidRenderer;c.jqplot.PyramidRenderer.prototype.init=function(j,o){j=j||{};this._type="pyramid";this.barPadding=10;this.barWidth=null;this.fill=true;this.highlightMouseOver=true;this.highlightMouseDown=false;this.highlightColors=[];this.offsetBars=false;if(j.highlightMouseDown&&j.highlightMouseOver==null){j.highlightMouseOver=false}this.side="right";c.extend(true,this,j);this.renderer.options=j;this._highlightedPoint=null;this._dataColors=[];this._barPoints=[];this.fillAxis="y";this._primaryAxis="_yaxis";this._xnudge=0;var n={lineJoin:"miter",lineCap:"butt",fill:this.fill,fillRect:this.fill,isarc:false,strokeStyle:this.color,fillStyle:this.color,closePath:this.fill,lineWidth:this.lineWidth};this.renderer.shapeRenderer.init(n);var m=j.shadowOffset;if(m==null){if(this.lineWidth>2.5){m=1.25*(1+(Math.atan((this.lineWidth/2.5))/0.785398163-1)*0.6)}else{m=1.25*Math.atan((this.lineWidth/2.5))/0.785398163}}var h={lineJoin:"miter",lineCap:"butt",fill:this.fill,fillRect:this.fill,isarc:false,angle:this.shadowAngle,offset:m,alpha:this.shadowAlpha,depth:this.shadowDepth,closePath:this.fill,lineWidth:this.lineWidth};this.renderer.shadowRenderer.init(h);o.postDrawHooks.addOnce(f);o.eventListenerHooks.addOnce("jqplotMouseMove",e);if(this.side==="left"){for(var k=0,g=this.data.length;k<g;k++){this.data[k][1]=-Math.abs(this.data[k][1])}}};c.jqplot.PyramidRenderer.prototype.setGridData=function(p){var j=this._xaxis.series_u2p;var o=this._yaxis.series_u2p;var k=this._plotData;var n=this._prevPlotData;this.gridData=[];this._prevGridData=[];var g=k.length;var m=false;var h;for(h=0;h<g;h++){if(k[h][1]<0){this.side="left"}}if(this._yaxis.name==="yMidAxis"&&this.side==="right"){this._xnudge=this._xaxis.max/2000;m=true}for(h=0;h<g;h++){if(k[h][0]!=null&&k[h][1]!=null){this.gridData.push([j(k[h][1]),o(k[h][0])])}else{if(k[h][0]==null){this.gridData.push([j(k[h][1]),null])}else{if(k[h][1]==null){this.gridData.push(null,[o(k[h][0])])}}}if(k[h][1]===0&&m){this.gridData[h][0]=j(this._xnudge)}}};c.jqplot.PyramidRenderer.prototype.makeGridData=function(m,p){var k=this._xaxis.series_u2p;var o=this._yaxis.series_u2p;var j=[];var g=m.length;var n=false;var h;for(h=0;h<g;h++){if(m[h][1]<0){this.side="left"}}if(this._yaxis.name==="yMidAxis"&&this.side==="right"){this._xnudge=this._xaxis.max/2000;n=true}for(h=0;h<g;h++){if(m[h][0]!=null&&m[h][1]!=null){j.push([k(m[h][1]),o(m[h][0])])}else{if(m[h][0]==null){j.push([k(m[h][1]),null])}else{if(m[h][1]==null){j.push([null,o(m[h][0])])}}}if(m[h][1]===0&&n){j[h][0]=k(this._xnudge)}}return j};c.jqplot.PyramidRenderer.prototype.setBarWidth=function(){var k;var g=0;var h=0;var m=this[this._primaryAxis];var q,l,o;g=m.max-m.min;var n=m.numberTicks;var j=(n-1)/2;var p=(this.barPadding===0)?1:0;if(m.name=="xaxis"||m.name=="x2axis"){this.barWidth=(m._offsets.max-m._offsets.min)/g-this.barPadding+p}else{if(this.fill){this.barWidth=(m._offsets.min-m._offsets.max)/g-this.barPadding+p}else{this.barWidth=(m._offsets.min-m._offsets.max)/g}}};c.jqplot.PyramidRenderer.prototype.draw=function(B,I,k){var E;var u=c.extend({},k);var p=(u.shadow!=undefined)?u.shadow:this.shadow;var K=(u.showLine!=undefined)?u.showLine:this.showLine;var C=(u.fill!=undefined)?u.fill:this.fill;var t=this._xaxis.series_u2p;var G=this._yaxis.series_u2p;var z,x;this._dataColors=[];this._barPoints=[];if(this.renderer.options.barWidth==null){this.renderer.setBarWidth.call(this)}var D=[],s,F;if(K){var q=new c.jqplot.ColorGenerator(this.negativeSeriesColors);var v=new c.jqplot.ColorGenerator(this.seriesColors);var J=q.get(this.index);if(!this.useNegativeColors){J=u.fillStyle}var o=u.fillStyle;var n;var L=this._xaxis.series_u2p(this._xnudge);var j=this._yaxis.series_u2p(this._yaxis.min);var m=this._yaxis.series_u2p(this._yaxis.max);var H=this.barWidth;var y=H/2;var D=[];var r=this.offsetBars?y:0;for(var E=0,A=I.length;E<A;E++){if(this.data[E][0]==null){continue}n=I[E][1];if(this._plotData[E][1]<0){if(this.varyBarColor&&!this._stack){if(this.useNegativeColors){u.fillStyle=q.next()}else{u.fillStyle=v.next()}}}else{if(this.varyBarColor&&!this._stack){u.fillStyle=v.next()}else{u.fillStyle=o}}if(this.fill){if(this._plotData[E][1]>=0){s=I[E][0]-L;F=this.barWidth;D=[L,n-y-r,s,F]}else{s=L-I[E][0];F=this.barWidth;D=[I[E][0],n-y-r,s,F]}this._barPoints.push([[D[0],D[1]+F],[D[0],D[1]],[D[0]+s,D[1]],[D[0]+s,D[1]+F]]);if(p){this.renderer.shadowRenderer.draw(B,D)}var g=u.fillStyle||this.color;this._dataColors.push(g);this.renderer.shapeRenderer.draw(B,D,u)}else{if(E===0){D=[[L,j],[I[E][0],j],[I[E][0],I[E][1]-y-r]]}else{if(E<A-1){D=D.concat([[I[E-1][0],I[E-1][1]-y-r],[I[E][0],I[E][1]+y-r],[I[E][0],I[E][1]-y-r]])}else{D=D.concat([[I[E-1][0],I[E-1][1]-y-r],[I[E][0],I[E][1]+y-r],[I[E][0],m],[L,m]]);if(p){this.renderer.shadowRenderer.draw(B,D)}var g=u.fillStyle||this.color;this._dataColors.push(g);this.renderer.shapeRenderer.draw(B,D,u)}}}}}if(this.highlightColors.length==0){this.highlightColors=c.jqplot.computeHighlightColors(this._dataColors)}else{if(typeof(this.highlightColors)=="string"){this.highlightColors=[];for(var E=0;E<this._dataColors.length;E++){this.highlightColors.push(this.highlightColors)}}}};function b(l,k,h){h=h||{};h.axesDefaults=h.axesDefaults||{};h.grid=h.grid||{};h.legend=h.legend||{};h.seriesDefaults=h.seriesDefaults||{};var g=false;if(h.seriesDefaults.renderer===c.jqplot.PyramidRenderer){g=true}else{if(h.series){for(var j=0;j<h.series.length;j++){if(h.series[j].renderer===c.jqplot.PyramidRenderer){g=true}}}}if(g){h.axesDefaults.renderer=c.jqplot.PyramidAxisRenderer;h.grid.renderer=c.jqplot.PyramidGridRenderer;h.seriesDefaults.pointLabels={show:false}}}function f(){if(this.plugins.pyramidRenderer&&this.plugins.pyramidRenderer.highlightCanvas){this.plugins.pyramidRenderer.highlightCanvas.resetCanvas();this.plugins.pyramidRenderer.highlightCanvas=null}this.plugins.pyramidRenderer={highlightedSeriesIndex:null};this.plugins.pyramidRenderer.highlightCanvas=new c.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.pyramidRenderer.highlightCanvas.createElement(this._gridPadding,"jqplot-pyramidRenderer-highlight-canvas",this._plotDimensions,this));this.plugins.pyramidRenderer.highlightCanvas.setContext();this.eventCanvas._elem.bind("mouseleave",{plot:this},function(g){d(g.data.plot)})}function a(m,l,j,i){var h=m.series[l];var g=m.plugins.pyramidRenderer.highlightCanvas;g._ctx.clearRect(0,0,g._ctx.canvas.width,g._ctx.canvas.height);h._highlightedPoint=j;m.plugins.pyramidRenderer.highlightedSeriesIndex=l;var k={fillStyle:h.highlightColors[j],fillRect:false};h.renderer.shapeRenderer.draw(g._ctx,i,k);g=null}function d(j){var g=j.plugins.pyramidRenderer.highlightCanvas;g._ctx.clearRect(0,0,g._ctx.canvas.width,g._ctx.canvas.height);for(var h=0;h<j.series.length;h++){j.series[h]._highlightedPoint=null}j.plugins.pyramidRenderer.highlightedSeriesIndex=null;j.target.trigger("jqplotDataUnhighlight");g=null}function e(k,j,n,m,l){if(m){var i=[m.seriesIndex,m.pointIndex,m.data];var h=jQuery.Event("jqplotDataMouseOver");h.pageX=k.pageX;h.pageY=k.pageY;l.target.trigger(h,i);if(l.series[i[0]].highlightMouseOver&&!(i[0]==l.plugins.pyramidRenderer.highlightedSeriesIndex&&i[1]==l.series[i[0]]._highlightedPoint)){var g=jQuery.Event("jqplotDataHighlight");g.pageX=k.pageX;g.pageY=k.pageY;l.target.trigger(g,i);a(l,m.seriesIndex,m.pointIndex,m.points)}}else{if(m==null){d(l)}}}c.jqplot.preInitHooks.push(b)})(jQuery);
|
@@ -0,0 +1,222 @@
|
|
1
|
+
/**
|
2
|
+
* jqPlot
|
3
|
+
* Pure JavaScript plotting plugin using jQuery
|
4
|
+
*
|
5
|
+
* Version: 1.0.0b2_r1012
|
6
|
+
*
|
7
|
+
* Copyright (c) 2009-2011 Chris Leonello
|
8
|
+
* jqPlot is currently available for use in all personal or commercial projects
|
9
|
+
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
|
10
|
+
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
|
11
|
+
* choose the license that best suits your project and use it accordingly.
|
12
|
+
*
|
13
|
+
* Although not required, the author would appreciate an email letting him
|
14
|
+
* know of any substantial use of jqPlot. You can reach the author at:
|
15
|
+
* chris at jqplot dot com or see http://www.jqplot.com/info.php .
|
16
|
+
*
|
17
|
+
* If you are feeling kind and generous, consider supporting the project by
|
18
|
+
* making a donation at: http://www.jqplot.com/donate.php .
|
19
|
+
*
|
20
|
+
* sprintf functions contained in jqplot.sprintf.js by Ash Searle:
|
21
|
+
*
|
22
|
+
* version 2007.04.27
|
23
|
+
* author Ash Searle
|
24
|
+
* http://hexmen.com/blog/2007/03/printf-sprintf/
|
25
|
+
* http://hexmen.com/js/sprintf.js
|
26
|
+
* The author (Ash Searle) has placed this code in the public domain:
|
27
|
+
* "This code is unrestricted: you are free to use it however you like."
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
(function($) {
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Class: $.jqplot.Trendline
|
34
|
+
* Plugin which will automatically compute and draw trendlines for plotted data.
|
35
|
+
*/
|
36
|
+
$.jqplot.Trendline = function() {
|
37
|
+
// Group: Properties
|
38
|
+
|
39
|
+
// prop: show
|
40
|
+
// Wether or not to show the trend line.
|
41
|
+
this.show = $.jqplot.config.enablePlugins;
|
42
|
+
// prop: color
|
43
|
+
// CSS color spec for the trend line.
|
44
|
+
// By default this wil be the same color as the primary line.
|
45
|
+
this.color = '#666666';
|
46
|
+
// prop: renderer
|
47
|
+
// Renderer to use to draw the trend line.
|
48
|
+
// The data series that is plotted may not be rendered as a line.
|
49
|
+
// Therefore, we use our own line renderer here to draw a trend line.
|
50
|
+
this.renderer = new $.jqplot.LineRenderer();
|
51
|
+
// prop: rendererOptions
|
52
|
+
// Options to pass to the line renderer.
|
53
|
+
// By default, markers are not shown on trend lines.
|
54
|
+
this.rendererOptions = {marker:{show:false}};
|
55
|
+
// prop: label
|
56
|
+
// Label for the trend line to use in the legend.
|
57
|
+
this.label = '';
|
58
|
+
// prop: type
|
59
|
+
// Either 'exponential', 'exp', or 'linear'.
|
60
|
+
this.type = 'linear';
|
61
|
+
// prop: shadow
|
62
|
+
// true or false, wether or not to show the shadow.
|
63
|
+
this.shadow = true;
|
64
|
+
// prop: markerRenderer
|
65
|
+
// Renderer to use to draw markers on the line.
|
66
|
+
// I think this is wrong.
|
67
|
+
this.markerRenderer = {show:false};
|
68
|
+
// prop: lineWidth
|
69
|
+
// Width of the trend line.
|
70
|
+
this.lineWidth = 1.5;
|
71
|
+
// prop: shadowAngle
|
72
|
+
// Angle of the shadow on the trend line.
|
73
|
+
this.shadowAngle = 45;
|
74
|
+
// prop: shadowOffset
|
75
|
+
// pixel offset for each stroke of the shadow.
|
76
|
+
this.shadowOffset = 1.0;
|
77
|
+
// prop: shadowAlpha
|
78
|
+
// Alpha transparency of the shadow.
|
79
|
+
this.shadowAlpha = 0.07;
|
80
|
+
// prop: shadowDepth
|
81
|
+
// number of strokes to make of the shadow.
|
82
|
+
this.shadowDepth = 3;
|
83
|
+
this.isTrendline = true;
|
84
|
+
|
85
|
+
};
|
86
|
+
|
87
|
+
$.jqplot.postSeriesInitHooks.push(parseTrendLineOptions);
|
88
|
+
$.jqplot.postDrawSeriesHooks.push(drawTrendline);
|
89
|
+
$.jqplot.addLegendRowHooks.push(addTrendlineLegend);
|
90
|
+
|
91
|
+
// called witin scope of the legend object
|
92
|
+
// current series passed in
|
93
|
+
// must return null or an object {label:label, color:color}
|
94
|
+
function addTrendlineLegend(series) {
|
95
|
+
var ret = null;
|
96
|
+
if (series.trendline && series.trendline.show) {
|
97
|
+
var lt = series.trendline.label.toString();
|
98
|
+
if (lt) {
|
99
|
+
ret = {label:lt, color:series.trendline.color};
|
100
|
+
}
|
101
|
+
}
|
102
|
+
return ret;
|
103
|
+
}
|
104
|
+
|
105
|
+
// called within scope of a series
|
106
|
+
function parseTrendLineOptions (target, data, seriesDefaults, options, plot) {
|
107
|
+
if (this._type && (this._type === 'line' || this._type == 'bar')) {
|
108
|
+
this.trendline = new $.jqplot.Trendline();
|
109
|
+
options = options || {};
|
110
|
+
$.extend(true, this.trendline, {color:this.color}, seriesDefaults.trendline, options.trendline);
|
111
|
+
this.trendline.renderer.init.call(this.trendline, null);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// called within scope of series object
|
116
|
+
function drawTrendline(sctx, options) {
|
117
|
+
// if we have options, merge trendline options in with precedence
|
118
|
+
options = $.extend(true, {}, this.trendline, options);
|
119
|
+
|
120
|
+
if (this.trendline && options.show) {
|
121
|
+
var fit;
|
122
|
+
// this.renderer.setGridData.call(this);
|
123
|
+
var data = options.data || this.data;
|
124
|
+
fit = fitData(data, this.trendline.type);
|
125
|
+
var gridData = options.gridData || this.renderer.makeGridData.call(this, fit.data);
|
126
|
+
this.trendline.renderer.draw.call(this.trendline, sctx, gridData, {showLine:true, shadow:this.trendline.shadow});
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
function regression(x, y, typ) {
|
131
|
+
var type = (typ == null) ? 'linear' : typ;
|
132
|
+
var N = x.length;
|
133
|
+
var slope;
|
134
|
+
var intercept;
|
135
|
+
var SX = 0;
|
136
|
+
var SY = 0;
|
137
|
+
var SXX = 0;
|
138
|
+
var SXY = 0;
|
139
|
+
var SYY = 0;
|
140
|
+
var Y = [];
|
141
|
+
var X = [];
|
142
|
+
|
143
|
+
if (type == 'linear') {
|
144
|
+
X = x;
|
145
|
+
Y = y;
|
146
|
+
}
|
147
|
+
else if (type == 'exp' || type == 'exponential') {
|
148
|
+
for ( var i=0; i<y.length; i++) {
|
149
|
+
// ignore points <= 0, log undefined.
|
150
|
+
if (y[i] <= 0) {
|
151
|
+
N--;
|
152
|
+
}
|
153
|
+
else {
|
154
|
+
X.push(x[i]);
|
155
|
+
Y.push(Math.log(y[i]));
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
for ( var i = 0; i < N; i++) {
|
161
|
+
SX = SX + X[i];
|
162
|
+
SY = SY + Y[i];
|
163
|
+
SXY = SXY + X[i]* Y[i];
|
164
|
+
SXX = SXX + X[i]* X[i];
|
165
|
+
SYY = SYY + Y[i]* Y[i];
|
166
|
+
}
|
167
|
+
|
168
|
+
slope = (N*SXY - SX*SY)/(N*SXX - SX*SX);
|
169
|
+
intercept = (SY - slope*SX)/N;
|
170
|
+
|
171
|
+
return [slope, intercept];
|
172
|
+
}
|
173
|
+
|
174
|
+
function linearRegression(X,Y) {
|
175
|
+
var ret;
|
176
|
+
ret = regression(X,Y,'linear');
|
177
|
+
return [ret[0],ret[1]];
|
178
|
+
}
|
179
|
+
|
180
|
+
function expRegression(X,Y) {
|
181
|
+
var ret;
|
182
|
+
var x = X;
|
183
|
+
var y = Y;
|
184
|
+
ret = regression(x, y,'exp');
|
185
|
+
var base = Math.exp(ret[0]);
|
186
|
+
var coeff = Math.exp(ret[1]);
|
187
|
+
return [base, coeff];
|
188
|
+
}
|
189
|
+
|
190
|
+
function fitData(data, typ) {
|
191
|
+
var type = (typ == null) ? 'linear' : typ;
|
192
|
+
var ret;
|
193
|
+
var res;
|
194
|
+
var x = [];
|
195
|
+
var y = [];
|
196
|
+
var ypred = [];
|
197
|
+
|
198
|
+
for (i=0; i<data.length; i++){
|
199
|
+
if (data[i] != null && data[i][0] != null && data[i][1] != null) {
|
200
|
+
x.push(data[i][0]);
|
201
|
+
y.push(data[i][1]);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
if (type == 'linear') {
|
206
|
+
ret = linearRegression(x,y);
|
207
|
+
for ( var i=0; i<x.length; i++){
|
208
|
+
res = ret[0]*x[i] + ret[1];
|
209
|
+
ypred.push([x[i], res]);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
else if (type == 'exp' || type == 'exponential') {
|
213
|
+
ret = expRegression(x,y);
|
214
|
+
for ( var i=0; i<x.length; i++){
|
215
|
+
res = ret[1]*Math.pow(ret[0],x[i]);
|
216
|
+
ypred.push([x[i], res]);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
return {data: ypred, slope: ret[0], intercept: ret[1]};
|
220
|
+
}
|
221
|
+
|
222
|
+
})(jQuery);
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* jqPlot
|
3
|
+
* Pure JavaScript plotting plugin using jQuery
|
4
|
+
*
|
5
|
+
* Version: 1.0.0b2_r1012
|
6
|
+
*
|
7
|
+
* Copyright (c) 2009-2011 Chris Leonello
|
8
|
+
* jqPlot is currently available for use in all personal or commercial projects
|
9
|
+
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
|
10
|
+
* version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
|
11
|
+
* choose the license that best suits your project and use it accordingly.
|
12
|
+
*
|
13
|
+
* Although not required, the author would appreciate an email letting him
|
14
|
+
* know of any substantial use of jqPlot. You can reach the author at:
|
15
|
+
* chris at jqplot dot com or see http://www.jqplot.com/info.php .
|
16
|
+
*
|
17
|
+
* If you are feeling kind and generous, consider supporting the project by
|
18
|
+
* making a donation at: http://www.jqplot.com/donate.php .
|
19
|
+
*
|
20
|
+
* sprintf functions contained in jqplot.sprintf.js by Ash Searle:
|
21
|
+
*
|
22
|
+
* version 2007.04.27
|
23
|
+
* author Ash Searle
|
24
|
+
* http://hexmen.com/blog/2007/03/printf-sprintf/
|
25
|
+
* http://hexmen.com/js/sprintf.js
|
26
|
+
* The author (Ash Searle) has placed this code in the public domain:
|
27
|
+
* "This code is unrestricted: you are free to use it however you like."
|
28
|
+
*
|
29
|
+
* included jsDate library by Chris Leonello:
|
30
|
+
*
|
31
|
+
* Copyright (c) 2010-2011 Chris Leonello
|
32
|
+
*
|
33
|
+
* jsDate is currently available for use in all personal or commercial projects
|
34
|
+
* under both the MIT and GPL version 2.0 licenses. This means that you can
|
35
|
+
* choose the license that best suits your project and use it accordingly.
|
36
|
+
*
|
37
|
+
* jsDate borrows many concepts and ideas from the Date Instance
|
38
|
+
* Methods by Ken Snyder along with some parts of Ken's actual code.
|
39
|
+
*
|
40
|
+
* Ken's origianl Date Instance Methods and copyright notice:
|
41
|
+
*
|
42
|
+
* Ken Snyder (ken d snyder at gmail dot com)
|
43
|
+
* 2008-09-10
|
44
|
+
* version 2.0.2 (http://kendsnyder.com/sandbox/date/)
|
45
|
+
* Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/)
|
46
|
+
*
|
47
|
+
* jqplotToImage function based on Larry Siden's export-jqplot-to-png.js.
|
48
|
+
* Larry has generously given permission to adapt his code for inclusion
|
49
|
+
* into jqPlot.
|
50
|
+
*
|
51
|
+
* Larry's original code can be found here:
|
52
|
+
*
|
53
|
+
* https://github.com/lsiden/export-jqplot-to-png
|
54
|
+
*
|
55
|
+
*
|
56
|
+
*/
|
57
|
+
(function(f){f.jqplot.Trendline=function(){this.show=f.jqplot.config.enablePlugins;this.color="#666666";this.renderer=new f.jqplot.LineRenderer();this.rendererOptions={marker:{show:false}};this.label="";this.type="linear";this.shadow=true;this.markerRenderer={show:false};this.lineWidth=1.5;this.shadowAngle=45;this.shadowOffset=1;this.shadowAlpha=0.07;this.shadowDepth=3;this.isTrendline=true};f.jqplot.postSeriesInitHooks.push(e);f.jqplot.postDrawSeriesHooks.push(g);f.jqplot.addLegendRowHooks.push(a);function a(k){var j=null;if(k.trendline&&k.trendline.show){var i=k.trendline.label.toString();if(i){j={label:i,color:k.trendline.color}}}return j}function e(m,k,j,i,l){if(this._type&&(this._type==="line"||this._type=="bar")){this.trendline=new f.jqplot.Trendline();i=i||{};f.extend(true,this.trendline,{color:this.color},j.trendline,i.trendline);this.trendline.renderer.init.call(this.trendline,null)}}function g(m,i){i=f.extend(true,{},this.trendline,i);if(this.trendline&&i.show){var k;var l=i.data||this.data;k=c(l,this.trendline.type);var j=i.gridData||this.renderer.makeGridData.call(this,k.data);this.trendline.renderer.draw.call(this.trendline,m,j,{showLine:true,shadow:this.trendline.shadow})}}function b(w,v,n){var u=(n==null)?"linear":n;var s=w.length;var t;var z;var o=0;var m=0;var r=0;var q=0;var l=0;var j=[];var k=[];if(u=="linear"){k=w;j=v}else{if(u=="exp"||u=="exponential"){for(var p=0;p<v.length;p++){if(v[p]<=0){s--}else{k.push(w[p]);j.push(Math.log(v[p]))}}}}for(var p=0;p<s;p++){o=o+k[p];m=m+j[p];q=q+k[p]*j[p];r=r+k[p]*k[p];l=l+j[p]*j[p]}t=(s*q-o*m)/(s*r-o*o);z=(m-t*o)/s;return[t,z]}function h(k,j){var i;i=b(k,j,"linear");return[i[0],i[1]]}function d(o,m){var k;var i=o;var n=m;k=b(i,n,"exp");var l=Math.exp(k[0]);var j=Math.exp(k[1]);return[l,j]}function c(l,j){var p=(j==null)?"linear":j;var n;var o;var r=[];var q=[];var m=[];for(k=0;k<l.length;k++){if(l[k]!=null&&l[k][0]!=null&&l[k][1]!=null){r.push(l[k][0]);q.push(l[k][1])}}if(p=="linear"){n=h(r,q);for(var k=0;k<r.length;k++){o=n[0]*r[k]+n[1];m.push([r[k],o])}}else{if(p=="exp"||p=="exponential"){n=d(r,q);for(var k=0;k<r.length;k++){o=n[1]*Math.pow(n[0],r[k]);m.push([r[k],o])}}}return{data:m,slope:n[0],intercept:n[1]}}})(jQuery);
|
@@ -1,2 +1,2 @@
|
|
1
|
-
//fgnass.github.com/spin.js#v1.2.5
|
1
|
+
//fgnass.github.com/spin.js#v1.2.5
|
2
2
|
(function(a,b,c){function g(a,c){var d=b.createElement(a||"div"),e;for(e in c)d[e]=c[e];return d}function h(a){for(var b=1,c=arguments.length;b<c;b++)a.appendChild(arguments[b]);return a}function j(a,b,c,d){var g=["opacity",b,~~(a*100),c,d].join("-"),h=.01+c/d*100,j=Math.max(1-(1-a)/b*(100-h),a),k=f.substring(0,f.indexOf("Animation")).toLowerCase(),l=k&&"-"+k+"-"||"";return e[g]||(i.insertRule("@"+l+"keyframes "+g+"{"+"0%{opacity:"+j+"}"+h+"%{opacity:"+a+"}"+(h+.01)+"%{opacity:1}"+(h+b)%100+"%{opacity:"+a+"}"+"100%{opacity:"+j+"}"+"}",0),e[g]=1),g}function k(a,b){var e=a.style,f,g;if(e[b]!==c)return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(g=0;g<d.length;g++){f=d[g]+b;if(e[f]!==c)return f}}function l(a,b){for(var c in b)a.style[k(a,c)||c]=b[c];return a}function m(a){for(var b=1;b<arguments.length;b++){var d=arguments[b];for(var e in d)a[e]===c&&(a[e]=d[e])}return a}function n(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a=a.offsetParent)b.x+=a.offsetLeft,b.y+=a.offsetTop;return b}var d=["webkit","Moz","ms","O"],e={},f,i=function(){var a=g("style");return h(b.getElementsByTagName("head")[0],a),a.sheet||a.styleSheet}(),o={lines:12,length:7,width:5,radius:10,rotate:0,color:"#000",speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto"},p=function q(a){if(!this.spin)return new q(a);this.opts=m(a||{},q.defaults,o)};p.defaults={},m(p.prototype,{spin:function(a){this.stop();var b=this,c=b.opts,d=b.el=l(g(0,{className:c.className}),{position:"relative",zIndex:c.zIndex}),e=c.radius+c.length+c.width,h,i;a&&(a.insertBefore(d,a.firstChild||null),i=n(a),h=n(d),l(d,{left:(c.left=="auto"?i.x-h.x+(a.offsetWidth>>1):c.left+e)+"px",top:(c.top=="auto"?i.y-h.y+(a.offsetHeight>>1):c.top+e)+"px"})),d.setAttribute("aria-role","progressbar"),b.lines(d,b.opts);if(!f){var j=0,k=c.fps,m=k/c.speed,o=(1-c.opacity)/(m*c.trail/100),p=m/c.lines;!function q(){j++;for(var a=c.lines;a;a--){var e=Math.max(1-(j+a*p)%m*o,c.opacity);b.opacity(d,c.lines-a,e,c)}b.timeout=b.el&&setTimeout(q,~~(1e3/k))}()}return b},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=c),this},lines:function(a,b){function e(a,d){return l(g(),{position:"absolute",width:b.length+b.width+"px",height:b.width+"px",background:a,boxShadow:d,transformOrigin:"left",transform:"rotate("+~~(360/b.lines*c+b.rotate)+"deg) translate("+b.radius+"px"+",0)",borderRadius:(b.width>>1)+"px"})}var c=0,d;for(;c<b.lines;c++)d=l(g(),{position:"absolute",top:1+~(b.width/2)+"px",transform:b.hwaccel?"translate3d(0,0,0)":"",opacity:b.opacity,animation:f&&j(b.opacity,b.trail,c,b.lines)+" "+1/b.speed+"s linear infinite"}),b.shadow&&h(d,l(e("#000","0 0 4px #000"),{top:"2px"})),h(a,h(d,e(b.color,"0 0 1px rgba(0,0,0,.1)")));return a},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}}),!function(){function a(a,b){return g("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',b)}var b=l(g("group"),{behavior:"url(#default#VML)"});!k(b,"transform")&&b.adj?(i.addRule(".spin-vml","behavior:url(#default#VML)"),p.prototype.lines=function(b,c){function f(){return l(a("group",{coordsize:e+" "+e,coordorigin:-d+" "+ -d}),{width:e,height:e})}function k(b,e,g){h(i,h(l(f(),{rotation:360/c.lines*b+"deg",left:~~e}),h(l(a("roundrect",{arcsize:1}),{width:d,height:c.width,left:c.radius,top:-c.width>>1,filter:g}),a("fill",{color:c.color,opacity:c.opacity}),a("stroke",{opacity:0}))))}var d=c.length+c.width,e=2*d,g=-(c.width+c.length)*2+"px",i=l(f(),{position:"absolute",top:g,left:g}),j;if(c.shadow)for(j=1;j<=c.lines;j++)k(j,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(j=1;j<=c.lines;j++)k(j);return h(b,i)},p.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}):f=k(b,"animation")}(),a.Spinner=p})(window,document);
|
@@ -0,0 +1,259 @@
|
|
1
|
+
/*rules for the plot target div. These will be cascaded down to all plot elements according to css rules*/
|
2
|
+
.jqplot-target {
|
3
|
+
position: relative;
|
4
|
+
color: #666666;
|
5
|
+
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
6
|
+
font-size: 1em;
|
7
|
+
/* height: 300px;
|
8
|
+
width: 400px;*/
|
9
|
+
}
|
10
|
+
|
11
|
+
/*rules applied to all axes*/
|
12
|
+
.jqplot-axis {
|
13
|
+
font-size: 0.75em;
|
14
|
+
}
|
15
|
+
|
16
|
+
.jqplot-xaxis {
|
17
|
+
margin-top: 10px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.jqplot-x2axis {
|
21
|
+
margin-bottom: 10px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.jqplot-yaxis {
|
25
|
+
margin-right: 10px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.jqplot-y2axis, .jqplot-y3axis, .jqplot-y4axis, .jqplot-y5axis, .jqplot-y6axis, .jqplot-y7axis, .jqplot-y8axis, .jqplot-y9axis, .jqplot-yMidAxis {
|
29
|
+
margin-left: 10px;
|
30
|
+
margin-right: 10px;
|
31
|
+
}
|
32
|
+
|
33
|
+
/*rules applied to all axis tick divs*/
|
34
|
+
.jqplot-axis-tick, .jqplot-xaxis-tick, .jqplot-yaxis-tick, .jqplot-x2axis-tick, .jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick, .jqplot-yMidAxis-tick {
|
35
|
+
position: absolute;
|
36
|
+
white-space: pre;
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
.jqplot-xaxis-tick {
|
41
|
+
top: 0px;
|
42
|
+
/* initial position untill tick is drawn in proper place */
|
43
|
+
left: 15px;
|
44
|
+
/* padding-top: 10px;*/
|
45
|
+
vertical-align: top;
|
46
|
+
}
|
47
|
+
|
48
|
+
.jqplot-x2axis-tick {
|
49
|
+
bottom: 0px;
|
50
|
+
/* initial position untill tick is drawn in proper place */
|
51
|
+
left: 15px;
|
52
|
+
/* padding-bottom: 10px;*/
|
53
|
+
vertical-align: bottom;
|
54
|
+
}
|
55
|
+
|
56
|
+
.jqplot-yaxis-tick {
|
57
|
+
right: 0px;
|
58
|
+
/* initial position untill tick is drawn in proper place */
|
59
|
+
top: 15px;
|
60
|
+
/* padding-right: 10px;*/
|
61
|
+
text-align: right;
|
62
|
+
}
|
63
|
+
|
64
|
+
.jqplot-yaxis-tick.jqplot-breakTick {
|
65
|
+
right: -20px;
|
66
|
+
margin-right: 0px;
|
67
|
+
padding:1px 5px 1px 5px;
|
68
|
+
/* background-color: white;*/
|
69
|
+
z-index: 2;
|
70
|
+
font-size: 1.5em;
|
71
|
+
}
|
72
|
+
|
73
|
+
.jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick {
|
74
|
+
left: 0px;
|
75
|
+
/* initial position untill tick is drawn in proper place */
|
76
|
+
top: 15px;
|
77
|
+
/* padding-left: 10px;*/
|
78
|
+
/* padding-right: 15px;*/
|
79
|
+
text-align: left;
|
80
|
+
}
|
81
|
+
|
82
|
+
.jqplot-yMidAxis-tick {
|
83
|
+
text-align: center;
|
84
|
+
white-space: nowrap;
|
85
|
+
}
|
86
|
+
|
87
|
+
.jqplot-xaxis-label {
|
88
|
+
margin-top: 10px;
|
89
|
+
font-size: 11pt;
|
90
|
+
position: absolute;
|
91
|
+
}
|
92
|
+
|
93
|
+
.jqplot-x2axis-label {
|
94
|
+
margin-bottom: 10px;
|
95
|
+
font-size: 11pt;
|
96
|
+
position: absolute;
|
97
|
+
}
|
98
|
+
|
99
|
+
.jqplot-yaxis-label {
|
100
|
+
margin-right: 10px;
|
101
|
+
/* text-align: center;*/
|
102
|
+
font-size: 11pt;
|
103
|
+
position: absolute;
|
104
|
+
}
|
105
|
+
|
106
|
+
.jqplot-yMidAxis-label {
|
107
|
+
font-size: 11pt;
|
108
|
+
position: absolute;
|
109
|
+
}
|
110
|
+
|
111
|
+
.jqplot-y2axis-label, .jqplot-y3axis-label, .jqplot-y4axis-label, .jqplot-y5axis-label, .jqplot-y6axis-label, .jqplot-y7axis-label, .jqplot-y8axis-label, .jqplot-y9axis-label {
|
112
|
+
/* text-align: center;*/
|
113
|
+
font-size: 11pt;
|
114
|
+
margin-left: 10px;
|
115
|
+
position: absolute;
|
116
|
+
}
|
117
|
+
|
118
|
+
.jqplot-meterGauge-tick {
|
119
|
+
font-size: 0.75em;
|
120
|
+
color: #999999;
|
121
|
+
}
|
122
|
+
|
123
|
+
.jqplot-meterGauge-label {
|
124
|
+
font-size: 1em;
|
125
|
+
color: #999999;
|
126
|
+
}
|
127
|
+
|
128
|
+
table.jqplot-table-legend {
|
129
|
+
margin-top: 12px;
|
130
|
+
margin-bottom: 12px;
|
131
|
+
margin-left: 12px;
|
132
|
+
margin-right: 12px;
|
133
|
+
}
|
134
|
+
|
135
|
+
table.jqplot-table-legend, table.jqplot-cursor-legend {
|
136
|
+
background-color: rgba(255,255,255,0.6);
|
137
|
+
border: 1px solid #cccccc;
|
138
|
+
position: absolute;
|
139
|
+
font-size: 0.75em;
|
140
|
+
}
|
141
|
+
|
142
|
+
td.jqplot-table-legend {
|
143
|
+
vertical-align:middle;
|
144
|
+
}
|
145
|
+
|
146
|
+
/*
|
147
|
+
These rules could be used instead of assigning
|
148
|
+
element styles and relying on js object properties.
|
149
|
+
*/
|
150
|
+
|
151
|
+
/*
|
152
|
+
td.jqplot-table-legend-swatch {
|
153
|
+
padding-top: 0.5em;
|
154
|
+
text-align: center;
|
155
|
+
}
|
156
|
+
|
157
|
+
tr.jqplot-table-legend:first td.jqplot-table-legend-swatch {
|
158
|
+
padding-top: 0px;
|
159
|
+
}
|
160
|
+
*/
|
161
|
+
|
162
|
+
td.jqplot-seriesToggle:hover, td.jqplot-seriesToggle:active {
|
163
|
+
cursor: pointer;
|
164
|
+
}
|
165
|
+
|
166
|
+
.jqplot-table-legend .jqplot-series-hidden {
|
167
|
+
text-decoration: line-through;
|
168
|
+
}
|
169
|
+
|
170
|
+
div.jqplot-table-legend-swatch-outline {
|
171
|
+
border: 1px solid #cccccc;
|
172
|
+
padding:1px;
|
173
|
+
}
|
174
|
+
|
175
|
+
div.jqplot-table-legend-swatch {
|
176
|
+
width:0px;
|
177
|
+
height:0px;
|
178
|
+
border-top-width: 5px;
|
179
|
+
border-bottom-width: 5px;
|
180
|
+
border-left-width: 6px;
|
181
|
+
border-right-width: 6px;
|
182
|
+
border-top-style: solid;
|
183
|
+
border-bottom-style: solid;
|
184
|
+
border-left-style: solid;
|
185
|
+
border-right-style: solid;
|
186
|
+
}
|
187
|
+
|
188
|
+
.jqplot-title {
|
189
|
+
top: 0px;
|
190
|
+
left: 0px;
|
191
|
+
padding-bottom: 0.5em;
|
192
|
+
font-size: 1.2em;
|
193
|
+
}
|
194
|
+
|
195
|
+
table.jqplot-cursor-tooltip {
|
196
|
+
border: 1px solid #cccccc;
|
197
|
+
font-size: 0.75em;
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
.jqplot-cursor-tooltip {
|
202
|
+
border: 1px solid #cccccc;
|
203
|
+
font-size: 0.75em;
|
204
|
+
white-space: nowrap;
|
205
|
+
background: rgba(208,208,208,0.5);
|
206
|
+
padding: 1px;
|
207
|
+
}
|
208
|
+
|
209
|
+
.jqplot-highlighter-tooltip, .jqplot-canvasOverlay-tooltip {
|
210
|
+
border: 1px solid #cccccc;
|
211
|
+
font-size: 0.75em;
|
212
|
+
white-space: nowrap;
|
213
|
+
background: rgba(208,208,208,0.5);
|
214
|
+
padding: 1px;
|
215
|
+
}
|
216
|
+
|
217
|
+
.jqplot-point-label {
|
218
|
+
font-size: 0.75em;
|
219
|
+
z-index: 2;
|
220
|
+
}
|
221
|
+
|
222
|
+
td.jqplot-cursor-legend-swatch {
|
223
|
+
vertical-align: middle;
|
224
|
+
text-align: center;
|
225
|
+
}
|
226
|
+
|
227
|
+
div.jqplot-cursor-legend-swatch {
|
228
|
+
width: 1.2em;
|
229
|
+
height: 0.7em;
|
230
|
+
}
|
231
|
+
|
232
|
+
.jqplot-error {
|
233
|
+
/* Styles added to the plot target container when there is an error go here.*/
|
234
|
+
text-align: center;
|
235
|
+
}
|
236
|
+
|
237
|
+
.jqplot-error-message {
|
238
|
+
/* Styling of the custom error message div goes here.*/
|
239
|
+
position: relative;
|
240
|
+
top: 46%;
|
241
|
+
display: inline-block;
|
242
|
+
}
|
243
|
+
|
244
|
+
div.jqplot-bubble-label {
|
245
|
+
font-size: 0.8em;
|
246
|
+
/* background: rgba(90%, 90%, 90%, 0.15);*/
|
247
|
+
padding-left: 2px;
|
248
|
+
padding-right: 2px;
|
249
|
+
color: rgb(20%, 20%, 20%);
|
250
|
+
}
|
251
|
+
|
252
|
+
div.jqplot-bubble-label.jqplot-bubble-label-highlight {
|
253
|
+
background: rgba(90%, 90%, 90%, 0.7);
|
254
|
+
}
|
255
|
+
|
256
|
+
div.jqplot-noData-container {
|
257
|
+
text-align: center;
|
258
|
+
background-color: rgba(96%, 96%, 96%, 0.3);
|
259
|
+
}
|