Home › forums › Using CanvasJS › Fit CanvasJs instance within jquery dialog
Tagged: dialog, resizing
This topic contains 2 replies, has 2 voices, and was last updated by ckrishnan 4 years, 3 months ago.
I love this plugin – great job! I’m trying to open an instance of CanvasJs within a jQueryUI dialog box, on a click event.
Everything works fine – see this fiddle: http://jsfiddle.net/B8VDD/1/
But, everytime I launch the chart, it just barely overlaps the width of the dialog box. NO matter how I resize the box, my canvasJS chart also resizes itself just large enough to cause the scroll bars to appear. How can I force the size of the chart to stay the same, so that I can adjust my dialog box to be large enough to avoid scroll bars?
Checkout this jsfiddle.
So simple! I should have tried that first…
You must be logged in to reply to this topic.