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
@spstorey @jbutz just encountered the same issue. Not sure of the cause, but I fixed the other bindings by renaming the 'render' method to 'renderPie'.
I'm unfamiliar with the internals of Dashing, but the 'render' function might have a name clash with something in Dashing.Widget base class that supports the binding functionality?