Sha256: c55f4ae98708e9d80ef887d7ed8f45306ab42a2e1f989ba2b5832d4dc7b20286

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

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

ChartJS.pie do
  file "example.html"
  data do
    dataset "a" do
      color :random
      data 1
    end
    dataset "b" do
      color :random
      data 2
    end
    dataset "c" do
      color :random
      data 3
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chart_js-1.1.1 examples/pie_chart.rb
chart_js-1.1.0 examples/pie_chart.rb