From dc94b1712bbe61be88f4a8d1aa9c5ee29ce46138 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sat, 28 Apr 2012 11:55:34 +0900 Subject: in living color! charts using the colors you want. --- examples/chart_colors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chart_colors.rb b/examples/chart_colors.rb index 14725626..41966d47 100644 --- a/examples/chart_colors.rb +++ b/examples/chart_colors.rb @@ -53,7 +53,7 @@ wb.add_worksheet(:name => "Scatter Chart") do |sheet| sheet.add_chart(Axlsx::ScatterChart, :title => "example 7: Scatter Chart") do |chart| chart.start_at 0, 4 chart.end_at 10, 19 - chart.add_series :xData => sheet["B1:E1"], :yData => sheet["B2:E2"], :title => sheet["A1"], :color => '0000FF' + chart.add_series :xData => sheet["B1:E1"], :yData => sheet["B2:E2"], :title => sheet["A1"], :color => '00FF00' chart.add_series :xData => sheet["B3:E3"], :yData => sheet["B4:E4"], :title => sheet["A3"], :color => 'FF0000' end end -- cgit v1.2.3