Skip to content

test: add linear progress chart spec coverage#297

Open
cat0825 wants to merge 1 commit into
VisActor:developfrom
cat0825:codex/vmind-228-linear-progress-spec-test
Open

test: add linear progress chart spec coverage#297
cat0825 wants to merge 1 commit into
VisActor:developfrom
cat0825:codex/vmind-228-linear-progress-spec-test

Conversation

@cat0825

@cat0825 cat0825 commented Jul 11, 2026

Copy link
Copy Markdown

What type of PR is this?

  • test

What this PR does / why we need it

Adds unit coverage for getChartSpecWithContext when chartType is Linear Progress chart.

The new tests verify that VMind's chart spec pipeline returns the expected VChart linearProgress spec, including:

  • field mapping (xField/yField swap, seriesField, cornerRadius)
  • multi-row and single-row axis label behavior
  • color channel mapping to seriesField
  • percentage formatting on the linear axis

Fixes #228

Which issue(s) this PR fixes

Fixes #228

Special notes for your reviewer

Validation was run locally with Node 18.20.8 against the new unit file (jest + workspace source mappers for @visactor/generate-vchart):

  • getChartSpecWithContext - Linear Progress Chart — 3 passed

Full monorepo rush install could not be completed in this environment due to registry network errors (ECONNRESET / ERR_INVALID_THIS), so CI should re-run the package unit suite.

Add unit coverage for getChartSpecWithContext when chartType is
Linear Progress chart, including multi-series axes, single-data
band label formatting, and color-to-seriesField mapping.

Fixes VisActor#228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[unit test] add test case of getChartSpecWithContext when chartType is linearProgress

1 participant