JS chart deserializer keeps unrecognized x_scale and y_scale
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.9k
- Forks
- 1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 70
Description
Python LineChart(..., x_scale='not-a-scale') is ScaleType.UNKNOWN. JS ScaleType in packages/code-interpreter-js/src/charts.ts has no UNKNOWN, and deserializeChart for line/scatter returns { ...data }, so x_scale stays 'not-a-scale'. ChartType already has UNKNOWN on the default branch.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/code-interpreter-js/src/charts.ts and inspect ScaleType plus the line/scatter branches of deserializeChart. Done means unrecognized x_scale and y_scale values follow the UNKNOWN behavior used by Python instead of remaining raw strings; verify the chart deserialization behavior with the repository’s relevant checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100