class GoogleVisualr::Image::SparkLine
code.google.com/apis/chart/interactive/docs/gallery/imagesparkline.html
Public Instance Methods
uri(params = {})
click to toggle source
Create URI for sparkline. Override parameters by passing in a hash. (see code.google.com/apis/chart/image/docs/chart_params.html)
Parameters:
*params [Optional] Hash of url query parameters
# File lib/google_visualr/image/spark_line.rb, line 16 def uri(params = {}) query_params = {} # Chart type: line query_params[:cht] = "ls" # showValueLabels (works as long as :chxt => "x,y") labels = "0:||" if @options["showValueLabels"] == false || !@options["showAxisLines"] labels += "1:||" end query_params[:chxl] = labels chart_image_url(query_params.merge(params)) end