Home forums Using CanvasJS Chart only Draws after Inspect Element

Tagged: , , ,

This topic contains 4 replies, has 2 voices, and was last updated by  wonky 2 weeks, 5 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23262

    wonky
    Member

    Why?

    #23264

    wonky
    Member

    This seems to be a common enough issue that maybe there’s a checklist of things to verify :
    https://stackoverflow.com/questions/18243427/elements-apear-only-after-inspect-element

    #23267

    wonky
    Member

    You can see the effect at http://voicerankmax.website/demo1/Coinlist_Sparkline1_list.php – The charts in the Chart7 column only draw after a resize of the window.

    #23272

    Vishwas R
    Keymaster

    @wonky,

    I went through the source code of the page that you have shared and observed that, within the showScript1757, showScript1758 and showScript1759 methods, you are instantiating new charts as chart_1757, chart_1758 and chart_1759 but calling render method as chart.render() and not chart_1757.render(). Calling render method on instantiated objects should work fine in your case, i.e changingchart.render(); to chart_1757.render();.


    Vishwas R
    Team CanvasJS

    #23286

    wonky
    Member

    @vishwas,

    EXACTLY.

    A diff of the original version that I had, and the fixed version shows only that one change.

    Thanks for the quick and precise support!

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

You must be logged in to reply to this topic.