Chart.js sometimes working sometimes not

Hi

I’m using an html iframe to display a pie chart using chart.js. It works fine in the preview and also loads correctly once in the live version, but if I refresh the page or leave it and return, the pie chart is still visible but the data I am pushing to it using postmessage does not load.

What’s even more strange is that if I delete cookies and cache, the chart works again once only (and in incognito it works most of the time, but sometimes still fails to load). Has anyone ever come across an issue like this?

I’ve used the exact same code in the regular Wix Editor and it works fine.

Thanks

Hi,

Thanks for sharing. Typically, postMessage() can be a bit complicated to debug, but we can try our best to investigate if there is a problem with the event.

Can you share the site url please?

Hi Sebi. The url is: https://tomharrisjackson.editorx.io/zest-nutrition

The page with the charts is a dynamic member-only page (called Member Data in the editor). You can access it in the live site by clicking “login” on the header, then logging in with the following dummy credentials:
test123@gmail.com
password: 1234

Thanks!

@benjamindev thank you.

We will investigate and get back to you.

@communityxteam Hi - have you been able to take a look? Thanks