Second diagram is not getting displayed

Hi,

I tried creating 2 different DIVs for 2 different diagrams. But the second the is not getting displayed. Any idea what might be causing this?

Thanks!

Are you using the debug library? Are there any errors or warnings?

Nearly every page in the Introduction has multiple DIVs and multiple Diagrams. http://gojs.net/intro A bunch of samples have multiple diagrams, including those with Palettes (which class inherits from Diagram).

Thanks for the response @walter!

After, I have assigned height and width to the DIV container, the second diagram also started coming up.
Earlier I was trying with “agDiagram.requestUpdate();”, but it wasn’t helping as expected. Anyways, I am good for now.

Thanks!

Yes, when the DIV’s width or height is zero, the user isn’t going to see much. More information at http://gojs.net/latest/intro/resizing.html.