Sha256: fb2109504d9a968abaac7508eb2843e6aa138dabbb32672a9a172a5567600fb3

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

## path setting magic for example directory only
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require "chart_js"
ChartJS.doughnut 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
#ChartJS.doughnut do
#	file "example.html"
#	data do
#		dataset "Good" do
#			color "#5cb85c"
#			data 20
#		end 
#		dataset "Bad" do
#			color "#d9534f"
#			data 4
#		end 
#	end
#end

Version data entries

2 entries across 2 versions & 1 rubygems

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