我已经安装了 mfpierre:chartist meteor 包并安装了 mspi:chartistlegend 插件(两个都是大气包)。我有这样的插件:
new Chartist.Bar('.ct-chart', {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
series: [
[1,2,3,4],
[1,2,3,4],
[1,2,3,4]
]
}, {
plugins: [ Chartist.plugins.legend() ]
});
图表不会在“插件”键/值对到位的情况下呈现。如果我删除“插件”键/值,图表呈现正常。据我所知,我正在关注文档。欢迎任何帮助。