This is a simple widget that lets you render pie charts in Dashing. 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="Pie" data-title="Bookmark freq."></div>
</li>
my_job.rb
:
data = [
{ label: "Hello world", value: 16 },
{ label: "Testing", value: 34 },
]
send_event 'bookmarks_frequency', { value: data }
I hope you like it! If you have any questions/comments feel free to contact me at steve [at sign] stevegattuso.me
Hi, great work. We use the pie chart a lot in our dashboards. I have recently changed the code to adapt the size of the pie cahrt to the widget size defined in the dashboard section. you can see the changes in my fork - would be happy to contibute this.