Sha256: d2be96a66a74390330c9faf6994913be02819581e5127d1b966b70ef1d064221

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

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

ChartJS.radar 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/radar_chart.rb
chart_js-1.1.0 examples/radar_chart.rb
chart_js-1.0.0 examples/radar_chart.rb
chart_js-1.0.1pre examples/radar_chart.rb
chart_js-1.0.0pre examples/radar_chart.rb