vendor/gems/ziya-2.1.7/lib/ziya/charts/base.rb
# spews the graph specification to a string
# <tt>:partial</tt>::  You can specify this option to only update parts of the charts
#                      that have actually changed. This is useful for live update and
#                      link update where you may not need to redraw the whole chart.
spews the graph specification to a string
:partial::  You can specify this option to only update parts of the charts
that have actually changed. This is useful for live update and
link update where you may not need to redraw the whole chart.
spews the graph specification to a string : partial :: You can specify this option to only update parts of the charts that have actually changed . This is useful for live update and link update where you may not need to redraw the whole chart .
def to_s( options={} )
      @partial = options[:partial] || false
      @xml     = Builder::XmlMarkup.new
      @xml.instruct! :xml, :version => "1.0", :encoding => "UTF-8"
      @xml.chart do
        @xml.license( @license ) unless @license.nil?
        if render_parents?
          if @type
            @xml.chart_type( @type )              
          elsif @options[:chart_types].is_a? Array and ! @options[:chart_types].empty?
            @xml.chart_type do   
              @options[:chart_types].each { |type| @xml.string( type ) }   
            end
          end
        end
        setup_lnf
        setup_series
      end
      @xml.to_s.gsub( /<to_s\/>/, '' )
    end
def to_s ( options = { } ) @partial = options [ :partial ] || false @xml = Builder :: XmlMarkup . new @xml . instruct! :xml , :version => "1.0" , :encoding => "UTF-8" @xml . chart do @xml . license ( @license ) unless @license . nil? if render_parents? if @type @xml . chart_type ( @type ) elsif @options [ :chart_types ] . is_a? Array and ! @options [ :chart_types ] . empty? @xml . chart_type do @options [ :chart_types ] . each { | type | @xml . string ( type ) } end end end setup_lnf setup_series end @xml . to_s . gsub ( / <to_s \/ > / , '' ) end
spews the graph specification to a string
<tt>:partial</tt>::  You can specify this option to only update parts of the charts
that have actually changed.
spews the graph specification to a string <tt > : partial< / tt > :: You can specify this option to only update parts of the charts that have actually changed .
# Forces utf8 encoding on xml stream
options