CanvasJS多个图表 [英] CanvasJS Multiple Charts
问题描述
我正在使用名为CanvasJS的安静漂亮的小js工具。它完全正常,直到我需要它一次显示多个图表。
Im working with a quiet nice little js tool called CanvasJS. It works perfectly fine until I needed it to display more than one Chart at once.
现在它只显示最后一个条目。其他东西被忽略了。我几乎尝试了所有的东西,但根本无法弄清楚为什么它不能正常工作。
Right now it just displays the last entry. Enerything else is being ignored. I tried pretty much everything, but simply can't figure out why it wont't work.
如果有人知道我怎么做才能使它成为mork,我会如果你让我知道,请非常高兴。
If someone has an idea how I coud make it mork propperly, I would be verry verry happy if you let me know.
版本:CanvasJS - v1.0 GA
VERSION: CanvasJS – v1.0 GA
类型:行
脚本: http://pastebin.com/hXVBkS8E
工具网址:canvasjs.com
Tool URL: canvasjs.com
编辑:
顺便提一下解决方案由 @Sunil Urs 提供的服务完美无缺!
By the way the solution sugested by @Sunil Urs works perfectly!
style="width: 80%; height:400px;"
http://jsfiddle.net/canvasjs/ZXh5y/
推荐答案
我尝试了你的代码图表实际上是渲染。但是,所有div元素都相互重叠。只需设置所有div元素的高度,它应该可以正常工作。
I tried your code and charts are actually rendering. But, all div elements are overlapping on top of each other. Just set the height for all div elements and it should work fine.
这篇关于CanvasJS多个图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!