rgraph-rails 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +1 -0
  3. data/README.md +5 -5
  4. data/lib/rgraph-rails/version.rb +1 -1
  5. data/rgraph-rails.gemspec +2 -2
  6. data/vendor/assets/images/bg.png +0 -0
  7. data/vendor/assets/images/bullet.png +0 -0
  8. data/vendor/assets/images/facebook-large.png +0 -0
  9. data/vendor/assets/images/google-plus-large.png +0 -0
  10. data/vendor/assets/images/logo.png +0 -0
  11. data/vendor/assets/images/meter-image-sd-needle.png +0 -0
  12. data/vendor/assets/images/meter-image-sd.png +0 -0
  13. data/vendor/assets/images/meter-sketch-needle.png +0 -0
  14. data/vendor/assets/images/meter-sketch.png +0 -0
  15. data/vendor/assets/images/odometer-background.png +0 -0
  16. data/vendor/assets/images/rgraph.jpg +0 -0
  17. data/vendor/assets/images/title.png +0 -0
  18. data/vendor/assets/images/twitter-large.png +0 -0
  19. data/vendor/assets/javascripts/RGraph.bar.js +258 -30
  20. data/vendor/assets/javascripts/RGraph.bipolar.js +4 -3
  21. data/vendor/assets/javascripts/RGraph.common.annotate.js +4 -3
  22. data/vendor/assets/javascripts/RGraph.common.context.js +4 -3
  23. data/vendor/assets/javascripts/RGraph.common.core.js +227 -105
  24. data/vendor/assets/javascripts/RGraph.common.csv.js +4 -3
  25. data/vendor/assets/javascripts/RGraph.common.deprecated.js +4 -3
  26. data/vendor/assets/javascripts/RGraph.common.dynamic.js +5 -4
  27. data/vendor/assets/javascripts/RGraph.common.effects.js +4 -3
  28. data/vendor/assets/javascripts/RGraph.common.key.js +4 -3
  29. data/vendor/assets/javascripts/RGraph.common.resizing.js +4 -3
  30. data/vendor/assets/javascripts/RGraph.common.sheets.js +357 -0
  31. data/vendor/assets/javascripts/RGraph.common.tooltips.js +6 -4
  32. data/vendor/assets/javascripts/RGraph.common.zoom.js +4 -3
  33. data/vendor/assets/javascripts/RGraph.drawing.background.js +4 -3
  34. data/vendor/assets/javascripts/RGraph.drawing.circle.js +4 -3
  35. data/vendor/assets/javascripts/RGraph.drawing.image.js +4 -3
  36. data/vendor/assets/javascripts/RGraph.drawing.marker1.js +4 -3
  37. data/vendor/assets/javascripts/RGraph.drawing.marker2.js +4 -3
  38. data/vendor/assets/javascripts/RGraph.drawing.marker3.js +1 -1
  39. data/vendor/assets/javascripts/RGraph.drawing.poly.js +1 -1
  40. data/vendor/assets/javascripts/RGraph.drawing.rect.js +1 -1
  41. data/vendor/assets/javascripts/RGraph.drawing.text.js +1 -1
  42. data/vendor/assets/javascripts/RGraph.drawing.xaxis.js +1 -1
  43. data/vendor/assets/javascripts/RGraph.drawing.yaxis.js +33 -30
  44. data/vendor/assets/javascripts/RGraph.fuel.js +14 -16
  45. data/vendor/assets/javascripts/RGraph.funnel.js +1 -1
  46. data/vendor/assets/javascripts/RGraph.gantt.js +1 -1
  47. data/vendor/assets/javascripts/RGraph.gauge.js +3 -5
  48. data/vendor/assets/javascripts/RGraph.hbar.js +738 -212
  49. data/vendor/assets/javascripts/RGraph.hprogress.js +30 -33
  50. data/vendor/assets/javascripts/RGraph.line.js +246 -31
  51. data/vendor/assets/javascripts/RGraph.meter.js +72 -36
  52. data/vendor/assets/javascripts/RGraph.modaldialog.js +1 -1
  53. data/vendor/assets/javascripts/RGraph.odo.js +3 -5
  54. data/vendor/assets/javascripts/RGraph.pie.js +23 -15
  55. data/vendor/assets/javascripts/RGraph.radar.js +1 -1
  56. data/vendor/assets/javascripts/RGraph.rose.js +2 -2
  57. data/vendor/assets/javascripts/RGraph.rscatter.js +116 -27
  58. data/vendor/assets/javascripts/RGraph.scatter.js +14 -15
  59. data/vendor/assets/javascripts/RGraph.thermometer.js +8 -10
  60. data/vendor/assets/javascripts/RGraph.vprogress.js +8 -10
  61. data/vendor/assets/javascripts/RGraph.waterfall.js +1 -1
  62. data/vendor/assets/stylesheets/website.css +32 -2
  63. metadata +6 -5
@@ -1,4 +1,4 @@
1
- // version: 2015-11-02
1
+ // version: 2016-02-06
2
2
  /**
3
3
  * o--------------------------------------------------------------------------------o
4
4
  * | This file is part of the RGraph package - you can learn more at: |
@@ -1330,22 +1330,17 @@
1330
1330
  'ylabels.count': numXLabels,
1331
1331
  'strict': true
1332
1332
  });
1333
-
1333
+
1334
1334
  this.Set('chart.xmax', this.xscale2.max);
1335
1335
  var interval = (ca.width - this.gutterLeft - this.gutterRight) / this.xscale2.labels.length;
1336
1336
 
1337
1337
  for (var i=0,len=this.xscale2.labels.length; i<len; i+=1) {
1338
1338
 
1339
- var num = ( (prop['chart.xmax'] - prop['chart.xmin']) * ((i+1) / numXLabels)) + (xmin || 0);
1340
- var x = this.gutterLeft + ((i+1) * interval);
1341
-
1342
- if (typeof(prop['chart.xscale.formatter']) == 'function') {
1343
- var text = String(prop['chart.xscale.formatter'](this, num));
1344
-
1345
- } else {
1346
-
1347
- var text = this.xscale2.labels[i]
1348
- }
1339
+ var num = ( (prop['chart.xmax'] - prop['chart.xmin']) * ((i+1) / numXLabels)) + (xmin || 0),
1340
+ x = this.gutterLeft + ((i+1) * interval),
1341
+
1342
+ // Repeated a few lines down
1343
+ text = typeof prop['chart.xscale.formatter'] === 'function' ? String(prop['chart.xscale.formatter'](this, num)) : this.xscale2.labels[i];
1349
1344
 
1350
1345
  RG.text2(this, {
1351
1346
  'color': color,
@@ -1360,9 +1355,13 @@
1360
1355
  'tag': 'xscale'
1361
1356
  });
1362
1357
  }
1363
-
1358
+
1364
1359
  // If the Y axis is on the right hand side - draw the left most X label
1365
1360
  // ** Always added now **
1361
+
1362
+ // Repeated a few lines up
1363
+ var text = typeof prop['chart.xscale.formatter'] === 'function' ? String(prop['chart.xscale.formatter'](this, prop['chart.xmin'])) : String(prop['chart.xmin']);
1364
+
1366
1365
  RG.text2(this, {
1367
1366
  'color': color,
1368
1367
  'font':font,
@@ -1372,10 +1371,10 @@
1372
1371
  'y': y,
1373
1372
  'valign': 'center',
1374
1373
  'halign':'center',
1375
- 'text':String(prop['chart.xmin']),
1374
+ 'text': text,
1376
1375
  'tag': 'xscale'
1377
1376
  });
1378
-
1377
+
1379
1378
  /**
1380
1379
  * Draw X labels
1381
1380
  */
@@ -1,4 +1,4 @@
1
- // version: 2015-11-02
1
+ // version: 2016-02-06
2
2
  /**
3
3
  * o--------------------------------------------------------------------------------o
4
4
  * | This file is part of the RGraph package - you can learn more at: |
@@ -35,8 +35,6 @@
35
35
  * Allow for object config style
36
36
  */
37
37
  if ( typeof conf === 'object'
38
- && typeof conf.min === 'number'
39
- && typeof conf.max === 'number'
40
38
  && typeof conf.id === 'string') {
41
39
 
42
40
  var parseConfObjectForOptions = true; // Set this so the config is parsed (at the end of the constructor)
@@ -44,11 +42,11 @@
44
42
  } else {
45
43
 
46
44
  var conf = {
47
- id: arguments[0],
48
- min: arguments[1],
49
- max: arguments[2],
50
- value: arguments[3]
51
- }
45
+ id: arguments[0],
46
+ min: arguments[1],
47
+ max: arguments[2],
48
+ value: arguments[3]
49
+ }
52
50
  }
53
51
 
54
52
 
@@ -63,8 +61,8 @@
63
61
  this.colorsParsed = false;
64
62
  this.type = 'thermometer';
65
63
  this.isRGraph = true;
66
- this.min = conf.min;
67
- this.max = conf.max;
64
+ this.min = RGraph.stringsToNumbers(conf.min);
65
+ this.max = RGraph.stringsToNumbers(conf.max);
68
66
  this.value = RGraph.stringsToNumbers(conf.value);
69
67
  this.coords = [];
70
68
  this.graphArea = [];
@@ -1,4 +1,4 @@
1
- // version: 2015-11-02
1
+ // version: 2016-02-06
2
2
  /**
3
3
  * o--------------------------------------------------------------------------------o
4
4
  * | This file is part of the RGraph package - you can learn more at: |
@@ -34,8 +34,6 @@
34
34
  * Allow for object config style
35
35
  */
36
36
  if ( typeof conf === 'object'
37
- && typeof conf.min === 'number'
38
- && typeof conf.max === 'number'
39
37
  && typeof conf.id === 'string') {
40
38
 
41
39
  var parseConfObjectForOptions = true; // Set this so the config is parsed (at the end of the constructor)
@@ -43,11 +41,11 @@
43
41
  } else {
44
42
 
45
43
  var conf = {
46
- id: arguments[0],
47
- min: arguments[1],
48
- max: arguments[2],
49
- value: arguments[3]
50
- }
44
+ id: arguments[0],
45
+ min: arguments[1],
46
+ max: arguments[2],
47
+ value: arguments[3]
48
+ }
51
49
  }
52
50
 
53
51
 
@@ -58,8 +56,8 @@
58
56
  this.context = this.canvas.getContext('2d');
59
57
  this.canvas.__object__ = this;
60
58
 
61
- this.min = conf.min;
62
- this.max = conf.max;
59
+ this.min = RGraph.stringsToNumbers(conf.min);
60
+ this.max = RGraph.stringsToNumbers(conf.max);
63
61
  this.value = RGraph.stringsToNumbers(conf.value);
64
62
  this.type = 'vprogress';
65
63
  this.coords = [];
@@ -1,4 +1,4 @@
1
- // version: 2015-11-02
1
+ // version: 2016-02-06
2
2
  /**
3
3
  * o--------------------------------------------------------------------------------o
4
4
  * | This file is part of the RGraph package - you can learn more at: |
@@ -35,7 +35,7 @@
35
35
 
36
36
  footer div#shareLinks {
37
37
  position: fixed;
38
- width: 390px;
38
+ width: 240px;
39
39
  height: 30px;
40
40
  right: 180px;
41
41
  top: 0;
@@ -63,7 +63,11 @@
63
63
  padding-top: 10px;
64
64
  border-radius: 10px;
65
65
  text-align: left;
66
- min-height: 950px;
66
+
67
+ /*
68
+ * Commented as it causes an issue in IE9
69
+ min-height: 550px;
70
+ */
67
71
  }
68
72
 
69
73
  h1 {
@@ -399,4 +403,30 @@
399
403
  color: #aaf;
400
404
  background-color: rgba(255,255,255,0.75);
401
405
  padding: 5px;
406
+ }
407
+
408
+ /**
409
+ * Forum styles
410
+ *
411
+ * This one hides the small screen message list
412
+ */
413
+ div#forumMonthListSmallScreenMonthList,
414
+ div#forumMessageListSmallScreen,
415
+ p#forumMessageListSmallScreen {
416
+ display: none;
417
+ }
418
+
419
+ div#forumMonthListSmallScreenMonthList a:active {
420
+ font-weight: bold;
421
+ }
422
+
423
+ /*
424
+ * The front page demo links
425
+ */
426
+ ul#news img {
427
+ transition: transform .25s;
428
+ }
429
+
430
+ ul#news img:hover {
431
+ transform: scale(1.1);
402
432
  }
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgraph-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Griffin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
@@ -111,6 +111,7 @@ files:
111
111
  - vendor/assets/javascripts/RGraph.common.effects.js
112
112
  - vendor/assets/javascripts/RGraph.common.key.js
113
113
  - vendor/assets/javascripts/RGraph.common.resizing.js
114
+ - vendor/assets/javascripts/RGraph.common.sheets.js
114
115
  - vendor/assets/javascripts/RGraph.common.tooltips.js
115
116
  - vendor/assets/javascripts/RGraph.common.zoom.js
116
117
  - vendor/assets/javascripts/RGraph.drawing.background.js
@@ -148,7 +149,7 @@ files:
148
149
  - vendor/assets/stylesheets/website.css
149
150
  homepage: https://github.com/thisisbd/rgraph-rails
150
151
  licenses:
151
- - GPL
152
+ - GPL-3.0
152
153
  metadata: {}
153
154
  post_install_message:
154
155
  rdoc_options: []