Skip to content

Commit

Permalink
Add morris line chart example
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwilhelmsen committed Sep 13, 2017
1 parent 2e7fa3d commit 2dd1ba9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/morris-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,19 @@ $(function() {
hideHover: 'auto',
resize: true
});

new Morris.Line({
element: 'morris-line-chart',
data: [
{ year: '2008', value: 20 },
{ year: '2009', value: 10 },
{ year: '2010', value: 5 },
{ year: '2011', value: 5 },
{ year: '2012', value: 20 }
],
xkey: 'year',
ykeys: ['value'],
labels: ['Value']
});

});

0 comments on commit 2dd1ba9

Please sign in to comment.