首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在meteor中使用dc.js图表库时,正确的包选择是什么

在meteor中使用dc.js图表库时,正确的包选择是什么
EN

Stack Overflow用户
提问于 2016-02-25 05:59:56
回答 1查看 59关注 0票数 0

我正在尝试制作一个流星应用程序,它使用了dc.js图表库。我已经添加了chrts:dc包。我的流星名单是:

代码语言:javascript
复制
autopublish           1.0.4  (For prototyping only) Publish the entire database to all clients
blaze-html-templates  1.0.1  Compile HTML templates into reactive UI with Meteor Blaze
charts:dc             1.7.4  Multi-Dimensional charts built to work natively with crossfilter rendered with d3.js (dc.js)
ecmascript            0.1.6* Compiler plugin that supports ES2015+ in all .js files
ejson                 1.0.7  Extended and Extensible JSON library
es5-shim              4.1.14  Shims and polyfills to improve ECMAScript 5 support
insecure              1.0.4  (For prototyping only) Allow all database writes from the client
jquery                1.11.4  Manipulate the DOM using CSS selectors
meteor-base           1.0.1  Packages that every Meteor app needs
mobile-experience     1.0.1  Packages for a great mobile user experience
mongo                 1.1.3  Adaptor for using MongoDB and Minimongo over DDP
session               1.1.1  Session variable
standard-minifiers    1.0.2  Standard minifiers used with Meteor apps by default.
tracker               1.0.9  Dependency tracker to allow reactive callbacks

当我运行这个应用程序时,我得到以下错误:

代码语言:javascript
复制
Uncaught ReferenceError: Template is not defined   chart.js:8743

Cannot read property 'length' of null              pfafman_crossfilter.js:560 

也许,meteor社区中的任何人都在使用dc.js,他们可以给我一个明确的方向,告诉我应该添加哪些包来使meteor与dc.js一起工作

EN

回答 1

Stack Overflow用户

发布于 2016-02-26 23:30:52

为了解决这个问题,我所做的是加载实际的原始库(d3.js和crossfilter.js),而不是智能包代理。只需将这两个库放在app/client/lib下,就可以很好地协同工作了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35614056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档