pt.onload = onload;
            document.getElementsByTagName('head')[0].appendChild(requireScript);
        }

        return result;
    };

    const loadAndRender = () => {
        const requireJsConfig = {
            'paths': {
                'lib': libUrl
            }
        };

        (window.require.config(requireJsConfig) || window.require)(
            ['lib'],
            (d3) => {
                libRender(d3);
                console.log('Succeeded');
            },
            (error) => 