a_la_chart 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/History.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
xml.chart(chart_options(:fusion, :bar).merge(:caption => params[:title])) do
|
2
2
|
the_case = params[:case]
|
3
3
|
data(the_case).each do |record|
|
4
|
-
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :bar)
|
4
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :bar), :toolText => value(record, :tooltip, the_case)
|
5
5
|
end
|
6
6
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
xml.chart(chart_options(:fusion, :bar).merge(:caption => params[:title])) do
|
2
2
|
the_case = params[:case]
|
3
3
|
data(the_case).each do |record|
|
4
|
-
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :column)
|
4
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :column), :toolText => value(record, :tooltip, the_case)
|
5
5
|
end
|
6
6
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
xml.chart(chart_options(:fusion, :pie).merge(:caption => params[:title])) do
|
2
2
|
the_case = params[:case]
|
3
3
|
data(the_case).each do |record|
|
4
|
-
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :pie)
|
4
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => color_palette_next(:fusion, :pie), :toolText => value(record, :tooltip, the_case)
|
5
5
|
end
|
6
6
|
end
|
@@ -1,2 +1,3 @@
|
|
1
1
|
<% set_chart(:pie) %>
|
2
|
-
|
2
|
+
<% the_case = args && args[:case] || params[:case] %>
|
3
|
+
<img src="http://chart.apis.google.com/chart?cht=p&chd=t:<%= data.map{|r| value(r, :value, the_case) }.join(',') %>&chs=<%= width %>x<%= height %>&chl=<%= data.map{|r| value(r, :label, the_case) }.join('|') %>&chtt=<%= args[:title] %>" width="<%= width %>" height="<%= height %>" />
|
data/lib/a_la_chart.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a_la_chart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Redmond
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-22 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|