Skip to content Skip to sidebar Skip to footer

Why Does My Chart (jqplot) Fail To Render Until I Press A Button When Integrated With Zk?

I am using zk to display a page and as part of that I include an html/js page that holds the chart I want to display using jqplot. If I load the html file by itself the plot shows

Solution 1:

that is a timing issue, please replace

the $(document).ready(function() {

with

zk.afterMount(function(){
    if (zk.mounting !== false) {
        zk.afterMount(arguments.callee);
        return;
    }

Post a Comment for "Why Does My Chart (jqplot) Fail To Render Until I Press A Button When Integrated With Zk?"