Skip to content

fix(render): disable return before full canvas paint - #237

Merged
nikkikapadia merged 3 commits into
masterfrom
nikki/fix/deferred-rendering-heatmaps
Jul 2, 2026
Merged

fix(render): disable return before full canvas paint#237
nikkikapadia merged 3 commits into
masterfrom
nikki/fix/deferred-rendering-heatmaps

Conversation

@nikkikapadia

@nikkikapadia nikkikapadia commented Jul 2, 2026

Copy link
Copy Markdown
Member

using some undocumented e-charts hack that will basically invalidate the paint timer so that the canvas returns only when the full chart is painted and not just after the timer goes off. We were getting this error TypeError: Cannot read properties of null (reading 'layerStack') that seemed to be thrown because of the timeout.

Some notes about this getTime() api option is that it was added around 2 months ago so seems fairly recent but doesn't seem like it was added to fix a bug. My gut says it will probably stay but here's the links to those commits and PRs anyways:

  • commit it was added in the Platform type
  • PR where the functionality is being used in the code
  • specific commit where functionality was added

Done with claude's help so feel free to suggest other solutions

@nikkikapadia
nikkikapadia marked this pull request as ready for review July 2, 2026 18:31
@nikkikapadia
nikkikapadia requested a review from gggritso July 2, 2026 18:31
Comment thread src/render.ts
// https://echarts.apache.org/en/option.html#series-heatmap.progressive
function disableProgressive(series: SeriesOption): SeriesOption {
return {...series, progressive: 0, progressiveThreshold: Infinity};
return {...series, progressive: 0, animation: false};

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

putting animation: false in here because it was suggest in this issue thread

@gggritso gggritso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it!

@nikkikapadia
nikkikapadia merged commit 4c8c888 into master Jul 2, 2026
22 checks passed
@nikkikapadia
nikkikapadia deleted the nikki/fix/deferred-rendering-heatmaps branch July 2, 2026 19:14
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

Successfully merging this pull request may close these issues.

2 participants