Skip to content

Missing chart id in the rendered chart markup #922

Closed
@larxn

Description

@larxn

Description:

When you render a post that contains a chart, that chart's div container sometimes includes an element with the visualizer-action class and the data-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:

  1. Create a new WordPress instance in tastewp.com (it doesn't require an account).
  2. Accept all the default configuration.
  3. Install Visualizer Plugin.
  4. Create a post that contains a chart.
  5. Open that posts' public URL.
  6. Open the browser's inspector and check the chart's markup: it will not contain any tag with the 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

  • WordPress v5.9.3
  • Visualizer: Tables and Charts for WordPress v3.7.10
  • Visualizer: Tables and Charts Manager for WordPress AddOn v1.10.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-createdThis label will be used after the doc-needed request has been satisfied.doc-neededThis issue requires documentation updates or additions once it has been completed.enhancementRequest to improve or optimize an existing feature or functionality in the projectreleasedIndicate that an issue has been resolved and released in a particular version of the product.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions