Question

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/

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top