Class Ambling::Data::XyChart
In: lib/ambling/data.rb
Parent: BaseData

For an amchart xy (line) chart

Methods

build_xml   new   tag_name  

Attributes

graphs  [R] 

Public Class methods

[Source]

# File lib/ambling/data.rb, line 209
      def initialize
        @graphs = []
      end

Public Instance methods

[Source]

# File lib/ambling/data.rb, line 213
      def build_xml(builder)
        @message.build_xml(builder) if !@message.nil?
        builder.graphs do |graphs|
          @graphs.each_with_index {|g,i| graphs.graph({:gid => i}) {|graph| g.build_xml(graph)}}
        end
      end

[Source]

# File lib/ambling/data.rb, line 220
      def tag_name
        "chart"
      end

[Validate]