##Preview
Simple Dashing widget (and associated job) to display charts using Chartist.js.
##Dependencies
Chartist.js is required.
Drop the Chartist-js .js and .css files (get them from the Chartist-js) into the dashing asset directories.
##Usage
To use this widget, copy charts.html
, charts.coffee
, and charts.scss
into the /widgets/charts
directory. Put the charts.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="2" data-sizex="4" data-sizey="2">
<div data-id="chart" class="chartist" data-chart-type="Line" data-view="Charts" data-title="Line"></div>
</li>
##Settings
Set the data-chart-type tag to either "Line", "Bar" or "Pie". And the data-view tag to "Charts".