문제

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/

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top