Skip to content

Canvas Rendering Anomalies in Some Cases #591

@LPlusM

Description

@LPlusM

When attempting to display an ECharts component after the page has finished rendering, the canvas may fail to render.
Code example:

<div>
    {dataType === DataTypeEnum.TABLE ? (
        <div>
          <Table columns={columns} dataSource={dataSource} loading={loading} />
        </div>
      ) : (
        <ReactEcharts
          option={option}
          style={{ height: 298 }}
        />
      )}
</div>

When updating dataType to display the ECharts component, the chart does not appear. Inspecting the element in DevTools reveals that no corresponding canvas node exists in the DOM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions