Home forums Using CanvasJS Chart in div hidden Reply To: Chart in div hidden

#6269

syduck
Participant

you can specify the height and width of the graph in the code, that way when the graph renders in a hidden div it will have the proper height and width. You can only specify in pixels though and not percent.


		    	 {
				  height: 550, //in pixels
				  width: 600,
			      zoomEnabled: true,      
			      colorSet:  "colorSet",
			      title:{
			       fontSize: 30,
			       text: "Activity",       
			     },