Sha256: 4334e1a67e3830ec83d9ba8cb739b3be66b9e0baf88a9cef38501587bc7c85fa

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

# path setting magic for example directory only
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "chart_js"

ChartJS.bar do
  file "example.html"
  data do
    labels ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"]
    dataset "Apples" do
      color :random
      data [12, 19, 3, 5, 2, 3]
    end 
    dataset "Pears" do
      color :random
      data [10, 12, 3, 4, 5, 3]
    end 
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chart_js-1.1.1 examples/bar_chart.rb
chart_js-1.1.0 examples/bar_chart.rb
chart_js-1.0.0 examples/bar_chart.rb
chart_js-1.0.1pre examples/bar_chart.rb
chart_js-1.0.0pre examples/bar_chart.rb