rgraph-rails 1.0.3 → 1.0.4
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.
- checksums.yaml +8 -8
- data/.travis.yml +1 -0
- data/README.md +5 -5
- data/lib/rgraph-rails/version.rb +1 -1
- data/rgraph-rails.gemspec +2 -2
- data/vendor/assets/images/bg.png +0 -0
- data/vendor/assets/images/bullet.png +0 -0
- data/vendor/assets/images/facebook-large.png +0 -0
- data/vendor/assets/images/google-plus-large.png +0 -0
- data/vendor/assets/images/logo.png +0 -0
- data/vendor/assets/images/meter-image-sd-needle.png +0 -0
- data/vendor/assets/images/meter-image-sd.png +0 -0
- data/vendor/assets/images/meter-sketch-needle.png +0 -0
- data/vendor/assets/images/meter-sketch.png +0 -0
- data/vendor/assets/images/odometer-background.png +0 -0
- data/vendor/assets/images/rgraph.jpg +0 -0
- data/vendor/assets/images/title.png +0 -0
- data/vendor/assets/images/twitter-large.png +0 -0
- data/vendor/assets/javascripts/RGraph.bar.js +258 -30
- data/vendor/assets/javascripts/RGraph.bipolar.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.annotate.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.context.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.core.js +227 -105
- data/vendor/assets/javascripts/RGraph.common.csv.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.deprecated.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.dynamic.js +5 -4
- data/vendor/assets/javascripts/RGraph.common.effects.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.key.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.resizing.js +4 -3
- data/vendor/assets/javascripts/RGraph.common.sheets.js +357 -0
- data/vendor/assets/javascripts/RGraph.common.tooltips.js +6 -4
- data/vendor/assets/javascripts/RGraph.common.zoom.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.background.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.circle.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.image.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.marker1.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.marker2.js +4 -3
- data/vendor/assets/javascripts/RGraph.drawing.marker3.js +1 -1
- data/vendor/assets/javascripts/RGraph.drawing.poly.js +1 -1
- data/vendor/assets/javascripts/RGraph.drawing.rect.js +1 -1
- data/vendor/assets/javascripts/RGraph.drawing.text.js +1 -1
- data/vendor/assets/javascripts/RGraph.drawing.xaxis.js +1 -1
- data/vendor/assets/javascripts/RGraph.drawing.yaxis.js +33 -30
- data/vendor/assets/javascripts/RGraph.fuel.js +14 -16
- data/vendor/assets/javascripts/RGraph.funnel.js +1 -1
- data/vendor/assets/javascripts/RGraph.gantt.js +1 -1
- data/vendor/assets/javascripts/RGraph.gauge.js +3 -5
- data/vendor/assets/javascripts/RGraph.hbar.js +738 -212
- data/vendor/assets/javascripts/RGraph.hprogress.js +30 -33
- data/vendor/assets/javascripts/RGraph.line.js +246 -31
- data/vendor/assets/javascripts/RGraph.meter.js +72 -36
- data/vendor/assets/javascripts/RGraph.modaldialog.js +1 -1
- data/vendor/assets/javascripts/RGraph.odo.js +3 -5
- data/vendor/assets/javascripts/RGraph.pie.js +23 -15
- data/vendor/assets/javascripts/RGraph.radar.js +1 -1
- data/vendor/assets/javascripts/RGraph.rose.js +2 -2
- data/vendor/assets/javascripts/RGraph.rscatter.js +116 -27
- data/vendor/assets/javascripts/RGraph.scatter.js +14 -15
- data/vendor/assets/javascripts/RGraph.thermometer.js +8 -10
- data/vendor/assets/javascripts/RGraph.vprogress.js +8 -10
- data/vendor/assets/javascripts/RGraph.waterfall.js +1 -1
- data/vendor/assets/stylesheets/website.css +32 -2
- metadata +6 -5
@@ -1,4 +1,4 @@
|
|
1
|
-
// version:
|
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
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
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':
|
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:
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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:
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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 = [];
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
footer div#shareLinks {
|
37
37
|
position: fixed;
|
38
|
-
width:
|
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
|
-
|
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.
|
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:
|
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: []
|