高图表热图 未捕获类型错误:无法读取未定义的属性“原型”
highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
首先对不起我的英语,这不是我的母语。
我在另一个库的 StackOverflow 中发现了这个通用错误,但无法解决我的问题。
我有一个带有高图表的 RoR 应用程序,我使用图表条和柱形图没有问题,但现在我尝试添加热图并抛出此错误(当我包含热图时,我的其他图表也爆炸了):
Uncaught TypeError: Cannot read property 'prototype' of undefined
Uncaught TypeError: chartBarContentsGenerator is not a function(anonymous function) @ report:262
report:328 Uncaught TypeError: chartBarContentsGenerator is not a function(anonymous function) @ report:328
application-babd633118c80bce803babb844831d35.js:30318 Uncaught Highcharts error #17: www.highcharts.com/errors/17
我的应用程序.js看起来像这样:
//= require highcharts/highcharts
//= require highcharts/modules/heatmap
//= require highcharts/highcharts-more
我尝试更新高图表,包括更多文件,如导出.js、highstock.js,更改行的顺序,但没有任何效果。
这是我的jsfiddle,这个图表工作
https://jsfiddle.net/llermaly/pay7pe9u/2/
*新信息:
我将这 2 行添加到我的应用程序 .html.erb 而不是使用 js 资产,但现在只有热图图表有效
<script type="text/javascript" src="https://code.highcharts.com/stock/highstock.js"></script>
<script type="text/javascript" src="https://code.highcharts.com/modules/heatmap.js"></script>
任何评论不胜感激。
问候
我没有
注意到版本,我使用的是旧版本的highcharts(4.1.9),然后我包含了最新版本的热图(4.2.3)并遇到了此错误,然后我将所有文件更新到4.2.3,但与另一个js文件冲突。
最后,我将热图和高图都降级到4.1.9v,并:)
我希望这对某人有所帮助
相关文章:
- TypeError:无法读取属性'推'未定义的JavaScript
- 未捕获的TypeError无法读取未定义的属性socialsharing
- 未捕获的类型错误:无法读取属性'删除'的未定义
- AngularJS指令出错-无法读取属性'编译'的未定义
- 看到“;未捕获的类型错误:无法读取属性'weight'未定义的“;尽管按照字面上的指示
- angularjs无法读取未定义的属性then
- 无法读取属性'材料'未定义的Three.js
- 得到"TypeError:无法读取属性'filename'未定义的“;调用“npm start
- Soundcloud api"未捕获的类型错误:无法读取属性'uri'“未定义”;
- JavaScript承诺-无法读取属性'那么'的未定义
- 未捕获的类型错误:无法读取属性'中止'的未定义
- 角度推入数组给出:TypeError:无法读取属性'推'的未定义
- Javascript未捕获类型错误:无法读取属性'0'的未定义
- jQuery控制台错误:无法读取属性'top'的未定义
- TypeError:无法读取属性'findAll'的未定义
- 无法读取属性'errcap'未定义的jqgrid
- 无法读取未定义的属性“rid”
- 未捕获的类型错误: 无法读取未定义的属性“图像”
- 可以't读取'getHTML'未定义的Liferay CK Editor内容
- 在node.js中未定义读取属性错误