Home forums Using CanvasJS Fit CanvasJs instance within jquery dialog

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  ckrishnan 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6189

    ckrishnan
    Participant

    Hi,

    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?

    Thanks

    #6190

    Sunil Urs
    Keymaster

    Krishnan,

    Checkout this jsfiddle.


    Sunil Urs

    #6191

    ckrishnan
    Participant

    So simple! I should have tried that first…

    Thanks Sunil
    ck

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.