ThatMSG
ThatMSG

Reputation: 1506

CanvasJS Multiple Charts

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/

Upvotes: 1

Views: 3752

Answers (1)

Sunil Urs
Sunil Urs

Reputation: 358

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.

Upvotes: 3

Related Questions