This is a simple widget that lets you render pie charts in Dashing. Forked from stevenleeg/pie.coffee It looks a little bit like this:
dashboard.erb
:
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="bookmarks_frequency" data-view="Fullpie" data-title="Bookmark freq."></div>
</li>
my_job.rb
:
data = [
{ label: "Label1", value: 16 },
{ label: "Label2", value: 34 },
{ label: "Label3", value: 10 },
{ label: "Label4", value: 40 },
{ label: "Label5", value: 20 },
]
send_event 'bookmarks_frequency', { value: data }
I hope you like it!
Thank you for FullPie!
I hijacked "more-info" to display chart total for size reference. 20% of 5 is much different than 20% of 50000000 :)
My widget definition in the dashboard:
Gives: "Out of 35159 Total Nodes" under the chart.