d3c3-rails 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ @import "d3c3_rails/c3";
@@ -0,0 +1,158 @@
1
+ /*-- Chart --*/
2
+ .c3 svg {
3
+ font: 10px sans-serif; }
4
+
5
+ .c3 path, .c3 line {
6
+ fill: none;
7
+ stroke: #000; }
8
+
9
+ .c3 text {
10
+ -webkit-user-select: none;
11
+ -moz-user-select: none;
12
+ user-select: none; }
13
+
14
+ .c3-legend-item-tile, .c3-xgrid-focus, .c3-ygrid, .c3-event-rect, .c3-bars path {
15
+ shape-rendering: crispEdges; }
16
+
17
+ .c3-chart-arc path {
18
+ stroke: #fff; }
19
+
20
+ .c3-chart-arc text {
21
+ fill: #fff;
22
+ font-size: 13px; }
23
+
24
+ /*-- Axis --*/
25
+ /*-- Grid --*/
26
+ .c3-grid line {
27
+ stroke: #aaa; }
28
+
29
+ .c3-grid text {
30
+ fill: #aaa; }
31
+
32
+ .c3-xgrid, .c3-ygrid {
33
+ stroke-dasharray: 3 3; }
34
+
35
+ /*-- Text on Chart --*/
36
+ .c3-text.c3-empty {
37
+ fill: #808080;
38
+ font-size: 2em; }
39
+
40
+ /*-- Line --*/
41
+ .c3-line {
42
+ stroke-width: 1px; }
43
+
44
+ /*-- Point --*/
45
+ .c3-circle._expanded_ {
46
+ stroke-width: 1px;
47
+ stroke: white; }
48
+
49
+ .c3-selected-circle {
50
+ fill: white;
51
+ stroke-width: 2px; }
52
+
53
+ /*-- Bar --*/
54
+ .c3-bar {
55
+ stroke-width: 0; }
56
+
57
+ .c3-bar._expanded_ {
58
+ fill-opacity: 0.75; }
59
+
60
+ /*-- Focus --*/
61
+ .c3-target.c3-focused {
62
+ opacity: 1; }
63
+
64
+ .c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
65
+ stroke-width: 2px; }
66
+
67
+ .c3-target.c3-defocused {
68
+ opacity: 0.3 !important; }
69
+
70
+ /*-- Region --*/
71
+ .c3-region {
72
+ fill: steelblue;
73
+ fill-opacity: 0.1; }
74
+
75
+ /*-- Brush --*/
76
+ .c3-brush .extent {
77
+ fill-opacity: 0.1; }
78
+
79
+ /*-- Select - Drag --*/
80
+ /*-- Legend --*/
81
+ .c3-legend-item {
82
+ font-size: 12px; }
83
+
84
+ .c3-legend-item-hidden {
85
+ opacity: 0.15; }
86
+
87
+ .c3-legend-background {
88
+ opacity: 0.75;
89
+ fill: white;
90
+ stroke: lightgray;
91
+ stroke-width: 1; }
92
+
93
+ /*-- Tooltip --*/
94
+ .c3-tooltip-container {
95
+ z-index: 10; }
96
+
97
+ .c3-tooltip {
98
+ border-collapse: collapse;
99
+ border-spacing: 0;
100
+ background-color: #fff;
101
+ empty-cells: show;
102
+ -webkit-box-shadow: 7px 7px 12px -9px #777777;
103
+ -moz-box-shadow: 7px 7px 12px -9px #777777;
104
+ box-shadow: 7px 7px 12px -9px #777777;
105
+ opacity: 0.9; }
106
+
107
+ .c3-tooltip tr {
108
+ border: 1px solid #CCC; }
109
+
110
+ .c3-tooltip th {
111
+ background-color: #aaa;
112
+ font-size: 14px;
113
+ padding: 2px 5px;
114
+ text-align: left;
115
+ color: #FFF; }
116
+
117
+ .c3-tooltip td {
118
+ font-size: 13px;
119
+ padding: 3px 6px;
120
+ background-color: #fff;
121
+ border-left: 1px dotted #999; }
122
+
123
+ .c3-tooltip td > span {
124
+ display: inline-block;
125
+ width: 10px;
126
+ height: 10px;
127
+ margin-right: 6px; }
128
+
129
+ .c3-tooltip td.value {
130
+ text-align: right; }
131
+
132
+ /*-- Area --*/
133
+ .c3-area {
134
+ stroke-width: 0;
135
+ opacity: 0.2; }
136
+
137
+ /*-- Arc --*/
138
+ .c3-chart-arcs-title {
139
+ dominant-baseline: middle;
140
+ font-size: 1.3em; }
141
+
142
+ .c3-chart-arcs .c3-chart-arcs-background {
143
+ fill: #e0e0e0;
144
+ stroke: none; }
145
+
146
+ .c3-chart-arcs .c3-chart-arcs-gauge-unit {
147
+ fill: #000;
148
+ font-size: 16px; }
149
+
150
+ .c3-chart-arcs .c3-chart-arcs-gauge-max {
151
+ fill: #777; }
152
+
153
+ .c3-chart-arcs .c3-chart-arcs-gauge-min {
154
+ fill: #777; }
155
+
156
+ .c3-chart-arc .c3-gauge-value {
157
+ fill: #000;
158
+ /* font-size: 28px !important;*/ }
@@ -1,4 +1,4 @@
1
1
  module D3C3Rails
2
2
  # current library version
3
- VERSION = Gem::Version.new('0.1.0')
3
+ VERSION = Gem::Version.new('0.1.2')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: d3c3-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-31 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,10 +52,10 @@ files:
52
52
  - README.md
53
53
  - app/assets/javascripts/d3c3_rails.js
54
54
  - app/assets/javascripts/d3c3_rails/base.js
55
- - app/assets/javascripts/d3c3_rails/c3-0.3.0.js
56
- - app/assets/javascripts/d3c3_rails/d3-3.4.11.js
57
- - app/assets/stylesheets/d3c3_rails.css
58
- - app/assets/stylesheets/d3c3_rails/c3-0.3.0.css
55
+ - app/assets/javascripts/d3c3_rails/c3-0.4.10.js
56
+ - app/assets/javascripts/d3c3_rails/d3-3.5.0.js
57
+ - app/assets/stylesheets/d3c3_rails.css.scss
58
+ - app/assets/stylesheets/d3c3_rails/c3.css.scss
59
59
  - lib/d3c3-rails.rb
60
60
  - lib/d3c3-rails/engine.rb
61
61
  - lib/d3c3-rails/generators.rb
@@ -1,3 +0,0 @@
1
- /*
2
- *= require_tree ./d3c3_rails
3
- */
@@ -1,203 +0,0 @@
1
- /*-- Chart --*/
2
-
3
- .c3 svg {
4
- font: 10px sans-serif;
5
- }
6
- .c3 path, .c3 line {
7
- fill: none;
8
- stroke: #000;
9
- }
10
- .c3 text {
11
- -webkit-user-select: none;
12
- -moz-user-select: none;
13
- user-select: none;
14
- }
15
-
16
- .c3-legend-item-tile,
17
- .c3-xgrid-focus,
18
- .c3-ygrid,
19
- .c3-event-rect,
20
- .c3-bars path {
21
- shape-rendering: crispEdges;
22
- }
23
-
24
- .c3-chart-arc path {
25
- stroke: #fff;
26
-
27
- }
28
- .c3-chart-arc text {
29
- fill: #fff;
30
- font-size: 13px;
31
- }
32
-
33
- /*-- Axis --*/
34
-
35
- .c3-axis-x .tick {
36
- }
37
- .c3-axis-x-label {
38
- }
39
-
40
- .c3-axis-y .tick {
41
- }
42
- .c3-axis-y-label {
43
- }
44
-
45
- .c3-axis-y2 .tick {
46
- }
47
- .c3-axis-y2-label {
48
- }
49
-
50
- /*-- Grid --*/
51
-
52
- .c3-grid line {
53
- stroke: #aaa;
54
- }
55
- .c3-grid text {
56
- fill: #aaa;
57
- }
58
- .c3-xgrid, .c3-ygrid {
59
- stroke-dasharray: 3 3;
60
- }
61
- .c3-xgrid-focus {
62
- }
63
-
64
- /*-- Text on Chart --*/
65
-
66
- .c3-text {
67
- }
68
-
69
- .c3-text.c3-empty {
70
- fill: #808080;
71
- font-size: 2em;
72
- }
73
-
74
- /*-- Line --*/
75
-
76
- .c3-line {
77
- stroke-width: 1px;
78
- }
79
- /*-- Point --*/
80
-
81
- .c3-circle._expanded_ {
82
- stroke-width: 1px;
83
- stroke: white;
84
- }
85
- .c3-selected-circle {
86
- fill: white;
87
- stroke-width: 2px;
88
- }
89
-
90
- /*-- Bar --*/
91
-
92
- .c3-bar {
93
- stroke-width: 0;
94
- }
95
- .c3-bar._expanded_ {
96
- fill-opacity: 0.75;
97
- }
98
-
99
- /*-- Arc --*/
100
-
101
- .c3-chart-arcs-title {
102
- font-size: 1.3em;
103
- }
104
-
105
- /*-- Focus --*/
106
-
107
- .c3-target.c3-focused path.c3-line, .c3-target.c3-focused path.c3-step {
108
- stroke-width: 2px;
109
- }
110
-
111
- /*-- Region --*/
112
-
113
- .c3-region {
114
- fill: steelblue;
115
- fill-opacity: .1;
116
- }
117
-
118
- /*-- Brush --*/
119
-
120
- .c3-brush .extent {
121
- fill-opacity: .1;
122
- }
123
-
124
- /*-- Select - Drag --*/
125
-
126
- .c3-dragarea {
127
- }
128
-
129
- /*-- Legend --*/
130
-
131
- .c3-legend-item {
132
- font-size: 12px;
133
- }
134
-
135
- .c3-legend-background {
136
- opacity: 0.75;
137
- fill: white;
138
- stroke: lightgray;
139
- stroke-width: 1
140
- }
141
-
142
- /*-- Tooltip --*/
143
-
144
- .c3-tooltip {
145
- border-collapse:collapse;
146
- border-spacing:0;
147
- background-color:#fff;
148
- empty-cells:show;
149
- -webkit-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
150
- -moz-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
151
- box-shadow: 7px 7px 12px -9px rgb(119,119,119);
152
- opacity: 0.9;
153
- }
154
- .c3-tooltip tr {
155
- border:1px solid #CCC;
156
- }
157
- .c3-tooltip th {
158
- background-color: #aaa;
159
- font-size:14px;
160
- padding:2px 5px;
161
- text-align:left;
162
- color:#FFF;
163
- }
164
- .c3-tooltip td {
165
- font-size:13px;
166
- padding: 3px 6px;
167
- background-color:#fff;
168
- border-left:1px dotted #999;
169
- }
170
- .c3-tooltip td > span {
171
- display: inline-block;
172
- width: 10px;
173
- height: 10px;
174
- margin-right: 6px;
175
- }
176
- .c3-tooltip td.value{
177
- text-align: right;
178
- }
179
-
180
- .c3-area {
181
- stroke-width: 0;
182
- opacity: 0.2;
183
- }
184
-
185
- .c3-chart-arcs .c3-chart-arcs-background {
186
- fill: #e0e0e0;
187
- stroke: none;
188
- }
189
- .c3-chart-arcs .c3-chart-arcs-gauge-unit {
190
- fill: #000;
191
- font-size: 16px;
192
- }
193
- .c3-chart-arcs .c3-chart-arcs-gauge-max {
194
- fill: #777;
195
- }
196
- .c3-chart-arcs .c3-chart-arcs-gauge-min {
197
- fill: #777;
198
- }
199
-
200
- .c3-chart-arc .c3-gauge-value {
201
- fill: #000;
202
- font-size: 28px;
203
- }