anychart_xml_builder 0.0.8 → 0.0.9

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/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
- gem.version = "0.0.8"
7
+ gem.version = "0.0.9"
8
8
  gem.name = "anychart_xml_builder"
9
9
  gem.summary = %Q{AnyChart (http://anychart.com/home/) XML Builders}
10
10
  gem.description = %Q{This gem provides you the methods to easily generate the XML necessary for AnyChart}
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  require 'nokogiri'
3
3
 
4
- [:legend,:chart_title].each do |section_type|
4
+ [:legend,:chart_title,:chart_background].each do |section_type|
5
5
  require "xml_sections/#{section_type}"
6
6
  end
7
7
 
data/lib/column_bar.rb CHANGED
@@ -76,6 +76,7 @@ module Anychart
76
76
  }
77
77
 
78
78
  xml.chart_settings {
79
+ Anychart::XML.chart_background(xml,p) # background
79
80
  Anychart::XML.chart_title(xml,p) # title
80
81
  Anychart::XML.legend(xml,p) # legend
81
82
 
data/lib/line_bar.rb CHANGED
@@ -82,6 +82,7 @@ module Anychart
82
82
  }
83
83
 
84
84
  xml.chart_settings {
85
+ Anychart::XML.chart_background(xml,p) # background
85
86
  Anychart::XML.chart_title(xml,p) # title
86
87
  Anychart::XML.legend(xml,p) # legend
87
88
 
data/lib/pie.rb CHANGED
@@ -100,6 +100,7 @@ module Anychart
100
100
  } # data_plot_settings
101
101
 
102
102
  xml.chart_settings {
103
+ Anychart::XML.chart_background(xml,p) # background
103
104
  Anychart::XML.chart_title(xml,p) # title
104
105
  Anychart::XML.legend(xml,p) # legend
105
106
  } # chart_settings
@@ -0,0 +1,10 @@
1
+ module Anychart
2
+ module XML
3
+ def self.chart_background(xml,p,options={})
4
+ xml.chart_background(:enabled => "False") {
5
+ xml.border(:enabled => "False", :color => "#7EAB3A", :opacity => "0.3") { }
6
+ }
7
+ end
8
+ end
9
+ end
10
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - jduarte
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-23 00:00:00 +00:00
17
+ date: 2011-01-24 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -68,6 +68,7 @@ files:
68
68
  - lib/init.rb
69
69
  - lib/line_bar.rb
70
70
  - lib/pie.rb
71
+ - lib/xml_sections/chart_background.rb
71
72
  - lib/xml_sections/chart_title.rb
72
73
  - lib/xml_sections/legend.rb
73
74
  - test/helper.rb