def render
        config = json_escape JSON.generate(self.options)
		if @timeSeriesSource
			config.gsub! '"__DataSource__"', json_escape(@timeSeriesSource)
		end
        dataUrlFormat = self.jsonUrl? ? "json" : ( self.xmlUrl ? "xml" : nil )
        template = File.read(File.expand_path("../../../templates/chart.erb", __FILE__))
        renderer = ERB.new(template)
        return raw renderer.result(binding)
      end
def render
        config = json_escape JSON.generate(self.options)
		if @timeSeriesSource
			config.gsub! '"__DataSource__"', json_escape(@timeSeriesSource)
		end
        dataUrlFormat = self.jsonUrl? ? "json" : ( self.xmlUrl ? "xml" : nil )
        template = File.read(File.expand_path("../../../templates/chart.erb", __FILE__))
        renderer = ERB.new(template)
        return raw renderer.result(binding)
      end
Render the chart