rickshaw_rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rickshaw_rails.rb +2 -3
- data/lib/rickshaw_rails/version.rb +1 -1
- data/vendor/assets/javascripts/d3.v2.js +6845 -9201
- data/vendor/assets/javascripts/rickshaw.js +259 -176
- data/vendor/assets/stylesheets/rickshaw.css +16 -0
- metadata +13 -22
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE +0 -22
- data/README.md +0 -58
- data/Rakefile +0 -2
- data/rickshaw_rails.gemspec +0 -24
- data/vendor/assets/javascripts/rickshaw_rails.js +0 -1
@@ -129,6 +129,22 @@
|
|
129
129
|
.rickshaw_graph .annotation_line.active {
|
130
130
|
display: block;
|
131
131
|
}
|
132
|
+
|
133
|
+
.rickshaw_graph .annotation_range {
|
134
|
+
background: rgba(0, 0, 0, 0.1);
|
135
|
+
display: none;
|
136
|
+
position: absolute;
|
137
|
+
top: 0;
|
138
|
+
bottom: -6px;
|
139
|
+
z-index: -10;
|
140
|
+
}
|
141
|
+
.rickshaw_graph .annotation_range.active {
|
142
|
+
display: block;
|
143
|
+
}
|
144
|
+
.rickshaw_graph .annotation_range.active.offscreen {
|
145
|
+
display: none;
|
146
|
+
}
|
147
|
+
|
132
148
|
.rickshaw_annotation_timeline .annotation .content {
|
133
149
|
background: white;
|
134
150
|
color: black;
|
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rickshaw_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Han Kang
|
9
|
-
-
|
10
|
-
- Byron Anderson
|
11
|
-
- Johnathan Pulos
|
9
|
+
- toreriklinnerud
|
12
10
|
autorequire:
|
13
11
|
bindir: bin
|
14
12
|
cert_chain: []
|
15
|
-
date: 2012-
|
13
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
16
14
|
dependencies:
|
17
15
|
- !ruby/object:Gem::Dependency
|
18
16
|
name: railties
|
19
|
-
requirement: &
|
17
|
+
requirement: &70167251239680 !ruby/object:Gem::Requirement
|
20
18
|
none: false
|
21
19
|
requirements:
|
22
20
|
- - ! '>='
|
@@ -24,10 +22,10 @@ dependencies:
|
|
24
22
|
version: 3.1.0
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
|
-
version_requirements: *
|
25
|
+
version_requirements: *70167251239680
|
28
26
|
- !ruby/object:Gem::Dependency
|
29
27
|
name: bundler
|
30
|
-
requirement: &
|
28
|
+
requirement: &70167251238360 !ruby/object:Gem::Requirement
|
31
29
|
none: false
|
32
30
|
requirements:
|
33
31
|
- - ~>
|
@@ -35,10 +33,10 @@ dependencies:
|
|
35
33
|
version: 1.0.0
|
36
34
|
type: :development
|
37
35
|
prerelease: false
|
38
|
-
version_requirements: *
|
36
|
+
version_requirements: *70167251238360
|
39
37
|
- !ruby/object:Gem::Dependency
|
40
38
|
name: rails
|
41
|
-
requirement: &
|
39
|
+
requirement: &70167251236240 !ruby/object:Gem::Requirement
|
42
40
|
none: false
|
43
41
|
requirements:
|
44
42
|
- - ~>
|
@@ -46,7 +44,7 @@ dependencies:
|
|
46
44
|
version: '3.1'
|
47
45
|
type: :development
|
48
46
|
prerelease: false
|
49
|
-
version_requirements: *
|
47
|
+
version_requirements: *70167251236240
|
50
48
|
description: ! ' Rickshaw, a javascript graphing library based on d3, for the rails
|
51
49
|
asset pipeline '
|
52
50
|
email:
|
@@ -55,21 +53,14 @@ executables: []
|
|
55
53
|
extensions: []
|
56
54
|
extra_rdoc_files: []
|
57
55
|
files:
|
58
|
-
- .gitignore
|
59
|
-
- Gemfile
|
60
|
-
- LICENSE
|
61
|
-
- README.md
|
62
|
-
- Rakefile
|
63
|
-
- lib/rickshaw_rails.rb
|
64
56
|
- lib/rickshaw_rails/engine.rb
|
65
57
|
- lib/rickshaw_rails/version.rb
|
66
|
-
- rickshaw_rails.
|
58
|
+
- lib/rickshaw_rails.rb
|
67
59
|
- vendor/assets/javascripts/d3.v2.js
|
68
60
|
- vendor/assets/javascripts/rickshaw.js
|
69
|
-
- vendor/assets/javascripts/rickshaw_rails.js
|
70
61
|
- vendor/assets/javascripts/rickshaw_with_d3.js
|
71
62
|
- vendor/assets/stylesheets/rickshaw.css
|
72
|
-
homepage:
|
63
|
+
homepage: ''
|
73
64
|
licenses: []
|
74
65
|
post_install_message:
|
75
66
|
rdoc_options: []
|
@@ -89,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
80
|
- !ruby/object:Gem::Version
|
90
81
|
version: '0'
|
91
82
|
requirements: []
|
92
|
-
rubyforge_project:
|
93
|
-
rubygems_version: 1.8.
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 1.8.5
|
94
85
|
signing_key:
|
95
86
|
specification_version: 3
|
96
87
|
summary: Gem installation of javascript framework for data visualization, D3
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 Han
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# Rickshaw
|
2
|
-
|
3
|
-
Rickshaw is a JavaScript toolkit for creating interactive time series graphs, developed at Shutterstock, and uses the d3 data visualization javascript framework
|
4
|
-
|
5
|
-
# About D3
|
6
|
-
|
7
|
-
**D3** is a small, free JavaScript library for manipulating HTML documents
|
8
|
-
based on data. D3 can help you quickly visualize your data as HTML or SVG,
|
9
|
-
handle interactivity, and incorporate smooth transitions and staged animations
|
10
|
-
into your pages. You can use D3 as a visualization framework (like Protovis),
|
11
|
-
or you can use it to build dynamic pages (like jQuery).
|
12
|
-
|
13
|
-
## Installation
|
14
|
-
|
15
|
-
Add this line to your application's Gemfile:
|
16
|
-
|
17
|
-
gem 'rickshaw_rails'
|
18
|
-
|
19
|
-
And then execute:
|
20
|
-
|
21
|
-
$ bundle
|
22
|
-
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
$ gem install rickshaw_rails
|
26
|
-
# Usage
|
27
|
-
|
28
|
-
All you have to do is include the desired files in your application.js (or another manifest file), like so:
|
29
|
-
|
30
|
-
//= require rickshaw
|
31
|
-
|
32
|
-
And similarly with your css manifest (application.css):
|
33
|
-
|
34
|
-
/*
|
35
|
-
*= require rickshaw
|
36
|
-
*/
|
37
|
-
|
38
|
-
# Additional Files
|
39
|
-
|
40
|
-
I have, for your convenience, thrown d3 (version 2.9.1, I think), into the vendor file, so if you're not using [d3_rails](https://github.com/logical42/d3_rails), then you can either require d3 directly (but before rickshaw) in your manifest:
|
41
|
-
|
42
|
-
//= require d3.v2
|
43
|
-
//= require rickshaw
|
44
|
-
|
45
|
-
Or you can just use the manifest file which I threw in here:
|
46
|
-
|
47
|
-
//= require rickshaw_with_d3
|
48
|
-
|
49
|
-
and that should include both d3 and rickshaw into you javascripts in the correct order.
|
50
|
-
|
51
|
-
|
52
|
-
## Contributing
|
53
|
-
|
54
|
-
1. Fork it
|
55
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
56
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
57
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
58
|
-
5. Create new Pull Request
|
data/Rakefile
DELETED
data/rickshaw_rails.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path('../lib/rickshaw_rails/version', __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = "rickshaw_rails"
|
6
|
-
s.version = "0.0.3"
|
7
|
-
s.authors = ["Han Kang", "Cynthia Kiser", "Byron Anderson", "Johnathan Pulos"]
|
8
|
-
s.email = ["han@logicallsat.com"]
|
9
|
-
s.homepage = "https://github.com/logical42/rickshaw_rails"
|
10
|
-
s.description = %q{ Rickshaw, a javascript graphing library based on d3, for the rails asset pipeline }
|
11
|
-
s.summary = %q{ Gem installation of javascript framework for data visualization, D3 }
|
12
|
-
|
13
|
-
s.rubyforge_project = "rickshaw_rails"
|
14
|
-
s.files = `git ls-files`.split("\n")
|
15
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
-
s.require_paths = ["lib", "vendor"]
|
18
|
-
|
19
|
-
s.add_dependency "railties", ">= 3.1.0"
|
20
|
-
s.add_development_dependency "bundler", "~> 1.0.0"
|
21
|
-
s.add_development_dependency "rails", "~> 3.1"
|
22
|
-
|
23
|
-
end
|
24
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require_self
|