【发布时间】:2017-07-12 07:23:58
【问题描述】:
我已经安装了 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() ]
});
图表不会在“插件”键/值对到位的情况下呈现。如果我删除“插件”键/值,图表呈现正常。据我所知,我正在关注文档。欢迎任何帮助。
【问题讨论】:
-
控制台给出,“TypeError: undefined is not an object (evalating 'Chartist.plugins.legend')”
标签: meteor chartist.js