morris.js chart doesn't work on production server
问题 I have this morris.js chart which I populated with random values (the ones provided in the exemple). Whereas it renders perfectly in localhost , once I upload on the production server it no longer works. Set up JS code new Morris.Line({ element: 'daily-chart', data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a: 50, b: 40 }, { y: '2009', a: 75, b: 65 }, { y: '2010', a: 50, b: 40 }, { y: '2011', a: 75, b: 65 }, { y: '2012', a: 100, b: 90 } ], xkey: 'y', ykeys: ['a