Home Forums Chart Support Chart only Draws after Inspect Element

Chart only Draws after Inspect Element

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

    Why?

    #23264

    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

    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

    @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

    @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.