CanvasJS Multiple Charts

纵然是瞬间 提交于 2019-12-24 09:09:41

问题


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.

If someone has an idea how I coud make it mork propperly, I would be verry verry happy if you let me know.

VERSION: CanvasJS – v1.0 GA

Type: Line

Script: http://pastebin.com/hXVBkS8E

Tool URL: canvasjs.com

EDIT: By the way the solution sugested by @Sunil Urs works perfectly!

style="width: 80%; height:400px;"

http://jsfiddle.net/canvasjs/ZXh5y/


回答1:


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.



来源:https://stackoverflow.com/questions/16106205/canvasjs-multiple-charts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!