Sha256: 98bdd347f37813c33da06de1a2f11a79dee61ca5109476659aa1afdbba0ee756

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

{
  type: google.charts.Bar,
  data: google.visualization.arrayToDataTable(<%= @csv.to_json %>),
  options: {
    chart: {
      title: <%= @title.to_json %>
    },
    hAxis: {
      title: <%= @header.first.to_json %>,
      minValue: 0
    },
    vAxis: {
      title: <%= @header.last.to_json %> ,
      minValue: 0
    },
    bars: 'horizontal'
  },
  style: {
    width: <%= @width.to_json %>,
    height: <%= @height.to_json %>
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asciinurse-0.1.3 resources/googlecharts/templates/charts/bar.json.erb
asciinurse-0.1.2 resources/googlecharts/templates/charts/bar.json.erb
asciinurse-0.1.1 resources/googlecharts/templates/charts/bar.json.erb
asciinurse-0.1.0 resources/googlecharts/templates/charts/bar.json.erb