TypeError: Chartist.plugins.legend is not a function
问题 I'm have recently started use Meteor build tool with Chartist to represent my data. I have java script for legend template (source from internet) Template.js function drawBarChart() { new Chartist.Bar('.legendChart1', { labels: ['First quarter of the year', 'Second quarter of the year', 'Third quarter of the year', 'Fourth quarter of the year'], series: [ { "name": "Money A", "data": [60000, 40000, 80000, 70000] }, { "name": "Money B", "data": [40000, 30000, 70000, 65000] } ] }, { plugins: [