Sha256: f366274372b075b5d4cc576a6ba21ed7b6f959eeeb9fab7c6c34c5f4bf837669
Contents?: true
Size: 1.03 KB
Versions: 14
Compression:
Stored size: 1.03 KB
Contents
module GoogleVisualr module Image # http://code.google.com/apis/chart/interactive/docs/gallery/imagesparkline.html class SparkLine < BaseChart include GoogleVisualr::Packages::ImageChart # For Configuration Options, please refer to: # http://code.google.com/apis/chart/interactive/docs/gallery/imagesparkline.html # Create URI for sparkline. Override parameters by passing in a hash. # (see http://code.google.com/apis/chart/image/docs/chart_params.html) # # Parameters: # *params [Optional] Hash of url query parameters 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 end end end
Version data entries
14 entries across 14 versions & 2 rubygems