a_la_chart 0.1.5 → 0.1.6

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.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.1.6 2010-2-22
2
+
3
+ * 1 enhancement:
4
+ * added separate tooltip mapping to certain fusion charts
5
+
1
6
  === 0.1.4 2010-1-14
2
7
 
3
8
  * 1 bug fix:
@@ -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
- <img src="http://chart.apis.google.com/chart?cht=p&chd=t:<%= data.map{|r| value(r, :value) }.join(',') %>&chs=<%= width %>x<%= height %>&chl=<%= data.map{|r| value(r, :label) }.join('|') %>&chtt=<%= args[:title] %>" width="<%= width %>" height="<%= height %>" />
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
@@ -1,5 +1,5 @@
1
1
  module ALaChart
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'a_la_chart', 'config')
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.5
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-01-15 00:00:00 -05:00
12
+ date: 2010-02-22 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency