Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use on a modern SharePoint Page #1

Open
worm5406 opened this issue Nov 7, 2023 · 2 comments
Open

Trying to use on a modern SharePoint Page #1

worm5406 opened this issue Nov 7, 2023 · 2 comments

Comments

@worm5406
Copy link

worm5406 commented Nov 7, 2023

The initial page doesn't load on my SharePoint page. The search function works fine but for some reason, the main page doesn't show up. See the attached screenshot.

image

Any assistance you can provide is appreciated, thanks!

@acklenx
Copy link
Owner

acklenx commented Nov 10, 2023

Can you view the console log messages?
What browser are you using (in chrome - Right click on the page, and select "inspect" or "developer tools" then "inspect")

Does it work outside of SharePoint?

What does your data look like? Or are you using the sample data?

@mason501
Copy link

mason501 commented Jun 11, 2024

Hi! Love this chart! I had this issue and a co-worker posted that message. I was able to resolve by adding window.onload = init();

The body onload="init()" wasn't firing on our SharePoint Intranet page.

       ` function hideSearchResults()
        {
            document.getElementById( 'searchResults' ).style.display = 'none';
            const newHash = "person=" + lastUnsavedId;
            if( newHash && newHash !== "person=null" && ( "#" + newHash ) !== ( document.location.hash ) )
            {
                lastHash = "#" + newHash;
                document.location.hash = newHash;
            }
            setTimeout( function()
                        {
                            document.getElementById( 'searchResults' ).style.display = 'none';
                        }, 10 );  // does this need to be async?
        }
        **window.onload = init();**
    </script>
    </head>
    <body onload="init()">`

I have another question though - is there a way to start the top with just the person block?

example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants