jqplot-on-rails 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +31 -0
  6. data/Rakefile +2 -0
  7. data/jqplot-on-rails.gemspec +20 -0
  8. data/lib/jqplot-on-rails/version.rb +5 -0
  9. data/lib/jqplot-on-rails.rb +8 -0
  10. data/vendor/assets/javascripts/jqplot/excanvas.js +1438 -0
  11. data/vendor/assets/javascripts/jqplot/jquery.jqplot.js +11411 -0
  12. data/vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.js +314 -0
  13. data/vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.min.js +3 -0
  14. data/vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.js +801 -0
  15. data/vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.min.js +3 -0
  16. data/vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.js +235 -0
  17. data/vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.min.js +3 -0
  18. data/vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.js +759 -0
  19. data/vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.min.js +3 -0
  20. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +203 -0
  21. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js +3 -0
  22. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.js +253 -0
  23. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js +3 -0
  24. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.js +1021 -0
  25. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.min.js +3 -0
  26. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.js +449 -0
  27. data/vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.min.js +3 -0
  28. data/vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.js +679 -0
  29. data/vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.min.js +3 -0
  30. data/vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.js +116 -0
  31. data/vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.min.js +3 -0
  32. data/vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.js +1108 -0
  33. data/vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.min.js +3 -0
  34. data/vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.js +741 -0
  35. data/vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.min.js +3 -0
  36. data/vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.js +805 -0
  37. data/vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.min.js +3 -0
  38. data/vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.js +225 -0
  39. data/vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.min.js +3 -0
  40. data/vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.js +305 -0
  41. data/vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js +3 -0
  42. data/vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.js +943 -0
  43. data/vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.min.js +3 -0
  44. data/vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.js +465 -0
  45. data/vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.min.js +3 -0
  46. data/vendor/assets/javascripts/jqplot/plugins/jqplot.json2.js +475 -0
  47. data/vendor/assets/javascripts/jqplot/plugins/jqplot.json2.min.js +3 -0
  48. data/vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.js +534 -0
  49. data/vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.min.js +3 -0
  50. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.js +611 -0
  51. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js +3 -0
  52. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.js +437 -0
  53. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.min.js +3 -0
  54. data/vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.js +1029 -0
  55. data/vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.min.js +3 -0
  56. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mobile.js +45 -0
  57. data/vendor/assets/javascripts/jqplot/plugins/jqplot.mobile.min.js +3 -0
  58. data/vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.js +373 -0
  59. data/vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.min.js +3 -0
  60. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.js +904 -0
  61. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.min.js +3 -0
  62. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.js +377 -0
  63. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.min.js +3 -0
  64. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.js +728 -0
  65. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js +3 -0
  66. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.js +429 -0
  67. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.min.js +3 -0
  68. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.js +514 -0
  69. data/vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.min.js +3 -0
  70. data/vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.js +223 -0
  71. data/vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.min.js +3 -0
  72. data/vendor/assets/stylesheets/jquery.jqplot.css +259 -0
  73. metadata +128 -0
@@ -0,0 +1,223 @@
1
+ /**
2
+ * jqPlot
3
+ * Pure JavaScript plotting plugin using jQuery
4
+ *
5
+ * Version: 1.0.8
6
+ * Revision: 1250
7
+ *
8
+ * Copyright (c) 2009-2013 Chris Leonello
9
+ * jqPlot is currently available for use in all personal or commercial projects
10
+ * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
11
+ * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
12
+ * choose the license that best suits your project and use it accordingly.
13
+ *
14
+ * Although not required, the author would appreciate an email letting him
15
+ * know of any substantial use of jqPlot. You can reach the author at:
16
+ * chris at jqplot dot com or see http://www.jqplot.com/info.php .
17
+ *
18
+ * If you are feeling kind and generous, consider supporting the project by
19
+ * making a donation at: http://www.jqplot.com/donate.php .
20
+ *
21
+ * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
22
+ *
23
+ * version 2007.04.27
24
+ * author Ash Searle
25
+ * http://hexmen.com/blog/2007/03/printf-sprintf/
26
+ * http://hexmen.com/js/sprintf.js
27
+ * The author (Ash Searle) has placed this code in the public domain:
28
+ * "This code is unrestricted: you are free to use it however you like."
29
+ *
30
+ */
31
+ (function($) {
32
+
33
+ /**
34
+ * Class: $.jqplot.Trendline
35
+ * Plugin which will automatically compute and draw trendlines for plotted data.
36
+ */
37
+ $.jqplot.Trendline = function() {
38
+ // Group: Properties
39
+
40
+ // prop: show
41
+ // Wether or not to show the trend line.
42
+ this.show = $.jqplot.config.enablePlugins;
43
+ // prop: color
44
+ // CSS color spec for the trend line.
45
+ // By default this wil be the same color as the primary line.
46
+ this.color = '#666666';
47
+ // prop: renderer
48
+ // Renderer to use to draw the trend line.
49
+ // The data series that is plotted may not be rendered as a line.
50
+ // Therefore, we use our own line renderer here to draw a trend line.
51
+ this.renderer = new $.jqplot.LineRenderer();
52
+ // prop: rendererOptions
53
+ // Options to pass to the line renderer.
54
+ // By default, markers are not shown on trend lines.
55
+ this.rendererOptions = {marker:{show:false}};
56
+ // prop: label
57
+ // Label for the trend line to use in the legend.
58
+ this.label = '';
59
+ // prop: type
60
+ // Either 'exponential', 'exp', or 'linear'.
61
+ this.type = 'linear';
62
+ // prop: shadow
63
+ // true or false, whether or not to show the shadow.
64
+ this.shadow = true;
65
+ // prop: markerRenderer
66
+ // Renderer to use to draw markers on the line.
67
+ // I think this is wrong.
68
+ this.markerRenderer = {show:false};
69
+ // prop: lineWidth
70
+ // Width of the trend line.
71
+ this.lineWidth = 1.5;
72
+ // prop: shadowAngle
73
+ // Angle of the shadow on the trend line.
74
+ this.shadowAngle = 45;
75
+ // prop: shadowOffset
76
+ // pixel offset for each stroke of the shadow.
77
+ this.shadowOffset = 1.0;
78
+ // prop: shadowAlpha
79
+ // Alpha transparency of the shadow.
80
+ this.shadowAlpha = 0.07;
81
+ // prop: shadowDepth
82
+ // number of strokes to make of the shadow.
83
+ this.shadowDepth = 3;
84
+ this.isTrendline = true;
85
+
86
+ };
87
+
88
+ $.jqplot.postSeriesInitHooks.push(parseTrendLineOptions);
89
+ $.jqplot.postDrawSeriesHooks.push(drawTrendline);
90
+ $.jqplot.addLegendRowHooks.push(addTrendlineLegend);
91
+
92
+ // called witin scope of the legend object
93
+ // current series passed in
94
+ // must return null or an object {label:label, color:color}
95
+ function addTrendlineLegend(series) {
96
+ var ret = null;
97
+ if (series.trendline && series.trendline.show) {
98
+ var lt = series.trendline.label.toString();
99
+ if (lt) {
100
+ ret = {label:lt, color:series.trendline.color};
101
+ }
102
+ }
103
+ return ret;
104
+ }
105
+
106
+ // called within scope of a series
107
+ function parseTrendLineOptions (target, data, seriesDefaults, options, plot) {
108
+ if (this._type && (this._type === 'line' || this._type == 'bar')) {
109
+ this.trendline = new $.jqplot.Trendline();
110
+ options = options || {};
111
+ $.extend(true, this.trendline, {color:this.color}, seriesDefaults.trendline, options.trendline);
112
+ this.trendline.renderer.init.call(this.trendline, null);
113
+ }
114
+ }
115
+
116
+ // called within scope of series object
117
+ function drawTrendline(sctx, options) {
118
+ // if we have options, merge trendline options in with precedence
119
+ options = $.extend(true, {}, this.trendline, options);
120
+
121
+ if (this.trendline && options.show) {
122
+ var fit;
123
+ // this.renderer.setGridData.call(this);
124
+ var data = options.data || this.data;
125
+ fit = fitData(data, this.trendline.type);
126
+ var gridData = options.gridData || this.renderer.makeGridData.call(this, fit.data);
127
+ this.trendline.renderer.draw.call(this.trendline, sctx, gridData, {showLine:true, shadow:this.trendline.shadow});
128
+ }
129
+ }
130
+
131
+ function regression(x, y, typ) {
132
+ var type = (typ == null) ? 'linear' : typ;
133
+ var N = x.length;
134
+ var slope;
135
+ var intercept;
136
+ var SX = 0;
137
+ var SY = 0;
138
+ var SXX = 0;
139
+ var SXY = 0;
140
+ var SYY = 0;
141
+ var Y = [];
142
+ var X = [];
143
+
144
+ if (type == 'linear') {
145
+ X = x;
146
+ Y = y;
147
+ }
148
+ else if (type == 'exp' || type == 'exponential') {
149
+ for ( var i=0; i<y.length; i++) {
150
+ // ignore points <= 0, log undefined.
151
+ if (y[i] <= 0) {
152
+ N--;
153
+ }
154
+ else {
155
+ X.push(x[i]);
156
+ Y.push(Math.log(y[i]));
157
+ }
158
+ }
159
+ }
160
+
161
+ for ( var i = 0; i < N; i++) {
162
+ SX = SX + X[i];
163
+ SY = SY + Y[i];
164
+ SXY = SXY + X[i]* Y[i];
165
+ SXX = SXX + X[i]* X[i];
166
+ SYY = SYY + Y[i]* Y[i];
167
+ }
168
+
169
+ slope = (N*SXY - SX*SY)/(N*SXX - SX*SX);
170
+ intercept = (SY - slope*SX)/N;
171
+
172
+ return [slope, intercept];
173
+ }
174
+
175
+ function linearRegression(X,Y) {
176
+ var ret;
177
+ ret = regression(X,Y,'linear');
178
+ return [ret[0],ret[1]];
179
+ }
180
+
181
+ function expRegression(X,Y) {
182
+ var ret;
183
+ var x = X;
184
+ var y = Y;
185
+ ret = regression(x, y,'exp');
186
+ var base = Math.exp(ret[0]);
187
+ var coeff = Math.exp(ret[1]);
188
+ return [base, coeff];
189
+ }
190
+
191
+ function fitData(data, typ) {
192
+ var type = (typ == null) ? 'linear' : typ;
193
+ var ret;
194
+ var res;
195
+ var x = [];
196
+ var y = [];
197
+ var ypred = [];
198
+
199
+ for (i=0; i<data.length; i++){
200
+ if (data[i] != null && data[i][0] != null && data[i][1] != null) {
201
+ x.push(data[i][0]);
202
+ y.push(data[i][1]);
203
+ }
204
+ }
205
+
206
+ if (type == 'linear') {
207
+ ret = linearRegression(x,y);
208
+ for ( var i=0; i<x.length; i++){
209
+ res = ret[0]*x[i] + ret[1];
210
+ ypred.push([x[i], res]);
211
+ }
212
+ }
213
+ else if (type == 'exp' || type == 'exponential') {
214
+ ret = expRegression(x,y);
215
+ for ( var i=0; i<x.length; i++){
216
+ res = ret[1]*Math.pow(ret[0],x[i]);
217
+ ypred.push([x[i], res]);
218
+ }
219
+ }
220
+ return {data: ypred, slope: ret[0], intercept: ret[1]};
221
+ }
222
+
223
+ })(jQuery);
@@ -0,0 +1,3 @@
1
+ /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com
2
+ jsDate | (c) 2010-2013 Chris Leonello
3
+ */(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);
@@ -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
+ }
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jqplot-on-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.8
5
+ platform: ruby
6
+ authors:
7
+ - Javier Ruiz Corisco
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ description: jQplot latest version on the Rails asset
28
+ email:
29
+ - javimbk@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - LICENSE.txt
37
+ - README.md
38
+ - Rakefile
39
+ - jqplot-on-rails.gemspec
40
+ - lib/jqplot-on-rails.rb
41
+ - lib/jqplot-on-rails/version.rb
42
+ - vendor/assets/javascripts/jqplot/excanvas.js
43
+ - vendor/assets/javascripts/jqplot/jquery.jqplot.js
44
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.js
45
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.BezierCurveRenderer.min.js
46
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.js
47
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.barRenderer.min.js
48
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.js
49
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.blockRenderer.min.js
50
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.js
51
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.bubbleRenderer.min.js
52
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js
53
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js
54
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.js
55
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js
56
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.js
57
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasOverlay.min.js
58
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.js
59
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.canvasTextRenderer.min.js
60
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.js
61
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.categoryAxisRenderer.min.js
62
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.js
63
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.ciParser.min.js
64
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.js
65
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.cursor.min.js
66
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.js
67
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.dateAxisRenderer.min.js
68
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.js
69
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.donutRenderer.min.js
70
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.js
71
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.dragable.min.js
72
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.js
73
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js
74
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.js
75
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.funnelRenderer.min.js
76
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.js
77
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.highlighter.min.js
78
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.json2.js
79
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.json2.min.js
80
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.js
81
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.logAxisRenderer.min.js
82
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.js
83
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js
84
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.js
85
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mekkoRenderer.min.js
86
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.js
87
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.meterGaugeRenderer.min.js
88
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mobile.js
89
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.mobile.min.js
90
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.js
91
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.ohlcRenderer.min.js
92
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.js
93
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pieRenderer.min.js
94
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.js
95
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pointLabels.min.js
96
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.js
97
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js
98
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.js
99
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidGridRenderer.min.js
100
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.js
101
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.pyramidRenderer.min.js
102
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.js
103
+ - vendor/assets/javascripts/jqplot/plugins/jqplot.trendline.min.js
104
+ - vendor/assets/stylesheets/jquery.jqplot.css
105
+ homepage: ''
106
+ licenses: []
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.2.2
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: The jQuery plotting library ready for Rails.
128
+ test_files: []