a_la_chart 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,6 @@ xml.instruct!
|
|
2
2
|
xml.chart(chart_options.merge(:caption => params[:title])) do
|
3
3
|
the_case = params[:case]
|
4
4
|
data(the_case).each do |record|
|
5
|
-
xml.set
|
6
|
-
:value => value(record, :value, the_case),
|
7
|
-
:label => value(record, :label, the_case),
|
8
|
-
:link => value(record, :link, the_case),
|
9
|
-
:color => next_color
|
5
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => next_color
|
10
6
|
end
|
11
7
|
end
|
@@ -2,10 +2,6 @@ xml.instruct!
|
|
2
2
|
xml.chart(chart_options.merge(:caption => params[:title])) do
|
3
3
|
the_case = params[:case]
|
4
4
|
data(the_case).each do |record|
|
5
|
-
xml.set
|
6
|
-
:value => value(record, :value, the_case),
|
7
|
-
:label => value(record, :label, the_case),
|
8
|
-
:link => value(record, :link, the_case),
|
9
|
-
:color => next_color
|
5
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => next_color
|
10
6
|
end
|
11
7
|
end
|
@@ -2,10 +2,6 @@ xml.instruct!
|
|
2
2
|
xml.chart(chart_options.merge(:caption => params[:title])) do
|
3
3
|
the_case = params[:case]
|
4
4
|
data(the_case).each do |record|
|
5
|
-
xml.set
|
6
|
-
:value => value(record, :value, the_case),
|
7
|
-
:label => value(record, :label, the_case),
|
8
|
-
:link => value(record, :link, the_case),
|
9
|
-
:color => next_color
|
5
|
+
xml.set :value => value(record, :value, the_case), :label => value(record, :label, the_case), :link => value(record, :link, the_case), :color => next_color
|
10
6
|
end
|
11
7
|
end
|
data/lib/a_la_chart.rb
CHANGED