gerbilcharts 0.2.8 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,10 +1,8 @@
1
- == 0.2.6 2009-10-27
1
+ == 0.2.10 2009-11-03
2
2
  * Changes
3
- * Negative values work good
4
- * Much better timerange selection
5
- * Auto tooltips for surfaces that allow it
6
- * Butterfly surface Area surface (such as in/out charts)
7
- * Other misc changes
3
+ * Applies a css stylesheet to svg elements
4
+ * Supports basic styles only
5
+ * The goal is to make gc work with the new svgweb
8
6
 
9
7
  == 0.2.3 2009-10-19
10
8
  * Changes
data/Manifest.txt CHANGED
@@ -80,3 +80,4 @@ lib/gerbilcharts/svgdc/svg_polyline.rb
80
80
  lib/gerbilcharts/svgdc/svg_rect.rb
81
81
  lib/gerbilcharts/svgdc/svg_text.rb
82
82
  lib/gerbilcharts/svgdc/svg_arc.rb
83
+ lib/gerbilcharts/svgdc/css_inliner.rb
data/README.txt CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  SVG based charting library especially suited for timeseries data.
8
8
 
9
+ * Now supports Internet Explorer via SVGWEB *
10
+
9
11
  == FEATURES/PROBLEMS:
10
12
 
11
13
  * Many predefined models
@@ -89,19 +89,20 @@ class GraphModelGroup
89
89
  # [+[min,max+] manual scaling
90
90
  #
91
91
  def effective_range_x(rangeopts=nil)
92
- if rangeopts.nil?
93
- return effective_round_range_x
94
- end
92
+
93
+ return effective_round_range_x if rangeopts.nil?
95
94
 
96
- if rangeopts.to_sym == :auto
97
- return effective_round_range_x
98
- elsif rangeopts.to_sym = :auto_0
99
- return effective_round_range_x
100
- elsif rangeopts.respond_to?('size') and rangeopts.size == 2
101
- reffx = RawRange.new
95
+ if rangeopts.is_a?(Array) and rangeopts.size == 2
96
+ reffx = RawRange.new
102
97
  reffx.update(rangeopts[0])
103
98
  reffx.update(rangeopts[1])
104
99
  return reffx
100
+ else
101
+ case rangeopts.to_sym
102
+ when :auto ;return effective_round_range_x
103
+ when :auto_0 ;return effective_round_range_x
104
+ else ;raise "Unknown range option"
105
+ end
105
106
  end
106
107
  end
107
108
 
@@ -1,227 +1,227 @@
1
- .surfacepanel
2
- {
3
- fill: none;
4
- stroke-width: 1;
5
- stroke: black;
6
- }
7
- .gridlineh
8
- {
9
- stroke-width: 1;
10
- stroke: lightgray;
11
- }
12
- .gridlinev
13
- {
14
- stroke-width: 1;
15
- stroke: lightgray;
16
- }
17
- .gridlinesub
18
- {
19
- stroke-width: 0.4;
20
- stroke: lightgray;
21
- }
22
- .surfaceback
23
- {
24
- fill: url(#vertgrad);
25
- }
26
- .axispanel
27
- {
28
- fill: lightgray;
29
- }
30
- .axistickmajor
31
- {
32
- stroke-width: 2;
33
- stroke: black;
34
- }
35
- .axistickminor
36
- {
37
- stroke-width: 1;
38
- stroke: black;
39
- }
40
- .panel
41
- {
42
- fill: white;
43
- }
44
-
45
- .legend
46
- {
47
- fill: red;
48
- }
49
- #item0
50
- {
51
- stroke: none;
52
- fill: #1F75FE;
53
- }
54
- #item1
55
- {
56
- stroke: none;
57
- fill: #B87333;
58
- }
59
- #item2
60
- {
61
- stroke: none;
62
- fill: gold;
63
- }
64
- #item3
65
- {
66
- stroke: none;
67
- fill: magenta;
68
- }
69
- #item4
70
- {
71
- stroke: none;
72
- fill: olive;
73
- }
74
- #item5
75
- {
76
- stroke: none;
77
- fill: green;
78
- }
79
- #item6
80
- {
81
- stroke: none;
82
- fill: red;
83
- }
84
- #item7
85
- {
86
- stroke: none;
87
- fill: #F88017;
88
- }
89
- #item8
90
- {
91
- stroke: none;
92
- fill: #640E29;
93
- }
94
- #item9
95
- {
96
- stroke: none;
97
- fill: aqua;
98
- }
99
- #item10
100
- {
101
- stroke: none;
102
- fill: black;
103
- }
104
- #lineitem0
105
- {
106
- stroke: #1F75FE;
107
- stroke-width: 2;
108
- }
109
- #lineitem1
110
- {
111
- stroke: #B87333;
112
- stroke-width: 2;
113
- }
114
- #lineitem2
115
- {
116
- stroke: gold;
117
- stroke-width: 2;
118
- }
119
- #lineitem3
120
- {
121
- stroke: magenta;
122
- stroke-width: 2;
123
- }
124
- #lineitem4
125
- {
126
- stroke: olive;
127
- stroke-width: 2;
128
- }
129
- #lineitem5
130
- {
131
- stroke: green;
132
- stroke-width: 2;
133
- }
134
- #lineitem6
135
- {
136
- stroke: red;
137
- stroke-width: 2;
138
- }
139
- #lineitem7
140
- {
141
- stroke: none;
142
- stroke-width: 2;
143
- }
144
- #lineitem8
145
- {
146
- stroke: none;
147
- stroke-width: 2;
148
- }
149
- .axislabel
150
- {
151
- font-family: sans;
152
- font-size: 10px;
153
- fill: black;
154
- stroke: none;
155
- }
156
-
157
- .axislabelt0
158
- {
159
- font-family: sans;
160
- font-size: 8px;
161
- fill: black;
162
- stroke: none;
163
- }
164
- .titletext
165
- {
166
- fill: gray;
167
- stroke: none;
168
- font-family: Arial, Helvetica, sans-serif;;
169
- font-size: 24px;
170
- font-weight: bold;
171
- }
172
- .titlepanel
173
- {
174
- fill: white;
175
- fill-opacity: 0.5;
176
- }
177
- .legendpanel
178
- {
179
- fill: white;
180
- fill-opacity: 0.5;
181
- }
182
-
183
- .legendtext
184
- {
185
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
186
- font-size: 10px;
187
- fill: black;
188
- stroke: none;
189
- }
190
- .elementlabel
191
- {
192
- font-family: sans;
193
- font-size: 10px;
194
- fill: black;
195
- stroke: none;
196
- }
197
- .elementvalue
198
- {
199
- font-family: sans;
200
- font-size: 8px;
201
- fill: black;
202
- stroke: none;
203
- }
204
- .trackerpanel
205
- {
206
- fill: white;
207
- fill-opacity: 0.01;
208
- }
209
- .trackerrect
210
- {
211
- fill: red;
212
- fill-opacity: 0.4;
213
- }
214
- .trackertextinterval
215
- {
216
- font-family: courier;
217
- font-size: 11px;
218
- fill: black;
219
- stroke: none;
220
- }
221
- .trackertextfromts
222
- {
223
- font-family: courier;
224
- font-size: 9px;
225
- fill: black;
226
- stroke: none;
227
- }
1
+ .surfacepanel
2
+ {
3
+ fill: none;
4
+ stroke-width: 1;
5
+ stroke: black;
6
+ }
7
+ .gridlineh
8
+ {
9
+ stroke-width: 1;
10
+ stroke: lightgray;
11
+ }
12
+ .gridlinev
13
+ {
14
+ stroke-width: 1;
15
+ stroke: lightgray;
16
+ }
17
+ .gridlinesub
18
+ {
19
+ stroke-width: 0.4;
20
+ stroke: lightgray;
21
+ }
22
+ .surfaceback
23
+ {
24
+ fill: white;
25
+ }
26
+ .axispanel
27
+ {
28
+ fill: lightgray;
29
+ }
30
+ .axistickmajor
31
+ {
32
+ stroke-width: 2;
33
+ stroke: black;
34
+ }
35
+ .axistickminor
36
+ {
37
+ stroke-width: 1;
38
+ stroke: black;
39
+ }
40
+ .panel
41
+ {
42
+ fill: white;
43
+ }
44
+
45
+ .legend
46
+ {
47
+ fill: red;
48
+ }
49
+ #item0
50
+ {
51
+ stroke: none;
52
+ fill: #1F75FE;
53
+ }
54
+ #item1
55
+ {
56
+ stroke: none;
57
+ fill: #B87333;
58
+ }
59
+ #item2
60
+ {
61
+ stroke: none;
62
+ fill: gold;
63
+ }
64
+ #item3
65
+ {
66
+ stroke: none;
67
+ fill: magenta;
68
+ }
69
+ #item4
70
+ {
71
+ stroke: none;
72
+ fill: olive;
73
+ }
74
+ #item5
75
+ {
76
+ stroke: none;
77
+ fill: green;
78
+ }
79
+ #item6
80
+ {
81
+ stroke: none;
82
+ fill: red;
83
+ }
84
+ #item7
85
+ {
86
+ stroke: none;
87
+ fill: #F88017;
88
+ }
89
+ #item8
90
+ {
91
+ stroke: none;
92
+ fill: #640E29;
93
+ }
94
+ #item9
95
+ {
96
+ stroke: none;
97
+ fill: aqua;
98
+ }
99
+ #item10
100
+ {
101
+ stroke: none;
102
+ fill: black;
103
+ }
104
+ #lineitem0
105
+ {
106
+ stroke: #1F75FE;
107
+ stroke-width: 2;
108
+ }
109
+ #lineitem1
110
+ {
111
+ stroke: #B87333;
112
+ stroke-width: 2;
113
+ }
114
+ #lineitem2
115
+ {
116
+ stroke: gold;
117
+ stroke-width: 2;
118
+ }
119
+ #lineitem3
120
+ {
121
+ stroke: magenta;
122
+ stroke-width: 2;
123
+ }
124
+ #lineitem4
125
+ {
126
+ stroke: olive;
127
+ stroke-width: 2;
128
+ }
129
+ #lineitem5
130
+ {
131
+ stroke: green;
132
+ stroke-width: 2;
133
+ }
134
+ #lineitem6
135
+ {
136
+ stroke: red;
137
+ stroke-width: 2;
138
+ }
139
+ #lineitem7
140
+ {
141
+ stroke: none;
142
+ stroke-width: 2;
143
+ }
144
+ #lineitem8
145
+ {
146
+ stroke: none;
147
+ stroke-width: 2;
148
+ }
149
+ .axislabel
150
+ {
151
+ font-family: sans;
152
+ font-size: 10px;
153
+ fill: black;
154
+ stroke: none;
155
+ }
156
+
157
+ .axislabelt0
158
+ {
159
+ font-family: sans;
160
+ font-size: 8px;
161
+ fill: black;
162
+ stroke: none;
163
+ }
164
+ .titletext
165
+ {
166
+ fill: gray;
167
+ stroke: none;
168
+ font-family: Arial, Helvetica, sans-serif;;
169
+ font-size: 24px;
170
+ font-weight: bold;
171
+ }
172
+ .titlepanel
173
+ {
174
+ fill: white;
175
+ fill-opacity: 0.5;
176
+ }
177
+ .legendpanel
178
+ {
179
+ fill: white;
180
+ fill-opacity: 0.5;
181
+ }
182
+
183
+ .legendtext
184
+ {
185
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
186
+ font-size: 10px;
187
+ fill: black;
188
+ stroke: none;
189
+ }
190
+ .elementlabel
191
+ {
192
+ font-family: sans;
193
+ font-size: 10px;
194
+ fill: black;
195
+ stroke: none;
196
+ }
197
+ .elementvalue
198
+ {
199
+ font-family: sans;
200
+ font-size: 8px;
201
+ fill: black;
202
+ stroke: none;
203
+ }
204
+ .trackerpanel
205
+ {
206
+ fill: white;
207
+ fill-opacity: 0.01;
208
+ }
209
+ .trackerrect
210
+ {
211
+ fill: red;
212
+ fill-opacity: 0.4;
213
+ }
214
+ .trackertextinterval
215
+ {
216
+ font-family: courier;
217
+ font-size: 11px;
218
+ fill: black;
219
+ stroke: none;
220
+ }
221
+ .trackertextfromts
222
+ {
223
+ font-family: courier;
224
+ font-size: 9px;
225
+ fill: black;
226
+ stroke: none;
227
+ }