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
Missing chart id in the rendered chart markup #922
Comments
Hello @luvejo, I can't replicate this issue on my local and tastewp instance. charts always render a container tag with the data-visualizer-chart-id attribute if we use frontend action(https://tinyurl.com/2j764mqq) otherwise it will render without the attribute. You can check here: Can you please share your tastewp instance details here? Thanks |
Oh, I didn't know "Frontend Actions" were required. As a workaround, we're taking the ID out of a CSS class, like this: document
.querySelector('.visualizer-front-container .visualizer-front')
.getAttribute('class')
.match(/visualizer-front-(\d+)/) But it doesn't seem very reliable. Could you possibly add a |
Hello @luvejo, I have added the new filter for add/remove container attributes. for now, you can download the updated plugin from the PR #923. Add the below filter in the active theme functions.php file.
Thanks |
Hi @girishpanchal30, Is it possible to release that change as a Thanks! |
Hey @ltroya-as, Thanks |
##### [Version 3.7.11](v3.7.10...v3.7.11) (2022-08-30) - Fix update axis baseline color [#925](#925) - Update more features images [#926](#926) - Fix update minor grid line field [#924](#924) - Add new filter for container attributes [#922](#922) - Fix axis data format issue [#920](#920) - Chart unique title [#915](#915) - Fix block back button issue [#930](#930) - Userguide broken documentation link [#918](#918)
🎉 This issue has been resolved in version 3.7.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description:
When you render a post that contains a chart, that chart's
div
container sometimes includes an element with thevisualizer-action
class and thedata-visualizer-chart-id
attribute. We need that attribute to always be present in order to guess that chart's id, but sometimes the attribute is not sent with chart markup.How to reproduce:
data-visualizer-chart-id
attribute.Expected behavior:
Posts that contain charts always render a container tag with the
data-visualizer-chart-id
attribute.Technical info
The text was updated successfully, but these errors were encountered: