FormidableLabs / FormidableLabs/victory

Possible to use CanvasCurve without creating multiple new canvas nodes?

Open
#3,070 5 comments 0 reactions 0 assignees View on GitHub
Type: Question :grey_question:
Dominant language
TypeScript
Stars
11.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Question

I need to make a chart with 50k+ lines (sometimes called a Spaghetti chart), so the canvas approach seems ideal, but from everything that I can see, each VictoryLine is creating it's own canvas object from the CanvasGroup, and the 1 nice line is rendering with the CanvasCurve, but the whole point of using a canvas is to reuse the canvas context for all the lines. Is there any way to share the canvas context?

Example:

![Image](https://github.com/user-attachments/assets/b678c1a9-3733-4b9a-99c1-b02bc611b281)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.