Sha256: bea92d35bf376f7cec8175097e7c2aa76faad025b69a5fcf6e5302a9d536cf1d

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

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

ChartJS.line do
  file "example.html"
  data do
    labels ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
    dataset "Cats" do
      color :random
      data [12, 19, 3, 5, 2, 3]
    end 
    dataset "Dogs" do
      color :random
      data [10, 12, 3, 4, 5, 3]
    end 
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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