我正在使用NVD3.js库生成图形。我试着在它中添加线条图&得到上面的错误。如何解决这个问题?
我正在尝试这个这里
发布于 2015-04-16 16:04:59
你能邮寄一个柱塞/填料吗?从我的头顶上看,它可能就是包含nv.d3.js的地方。你还包括D3.js吗?
发布于 2016-01-20 20:41:51
实际上我发现问题是文件夹的结构。nvd3 3网站附带的例子给出了路径。
bower组件/nvd3 3/nv.d3.js
,在bower_components文件中签入实际路径为
bower_components/nvd3/build/nv.d3.js
类似地,nv.d3.css路径不是
bower组件/nvd3 3/nv.d3.css
它是,
bower_components/nvd3/build/nv.d3.css
另外,别忘了添加
<meta charset="utf-8">作为你头部标签里的第一行。
发布于 2016-12-02 10:09:31
我在使用ionic2 (基于Angular2)时遇到了类似的问题。
尽管所有必需的库都包含在index.html中。问题的最终是,脚本必须包括之前,离子应用程序是加载!
<!-- These scripts are copied from node_modules-->
<script src="build/d3.min.js" charset="utf-8"></script>
<script src="build/nv.d3.min.js"></script>
<!-- Ionic's root component and where the app will load -->
<ion-app></ion-app>https://stackoverflow.com/questions/29676076
复制相似问题