morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

Render Goal line on top of Area chart #709

Open TorosyanV opened 7 years ago

TorosyanV commented 7 years ago

How can I show goal line on top of Area chart?

`Morris.Area({ element: 'line-example', data: [ { y: '2006', a: 22 }, { y: '2007', a: 8}, { y: '2008', a: 7 }, { y: '2009', a: 11 }, { y: '2010', a: 10 }, { y: '2011', a: 12 }, { y: '2012', a: 7 } ], xkey: 'y', ykeys: ['a'], labels: ['Series A'], goalStrokeWidth:3, goalLineColors:['red'], goals: [10],

});`

line

pierresh commented 6 years ago

I just gave a work around to this problem in #691