Skip to content

docs(option): fix default values that differ from the source - #544

Open
farisbasha wants to merge 1 commit into
apache:masterfrom
farisbasha:docs/option-default-values
Open

farisbasha wants to merge 1 commit into
apache:masterfrom
farisbasha:docs/option-default-values

Conversation

@farisbasha

@farisbasha farisbasha commented Nov 18, 2026 •

Copy link
Copy Markdown

Some option pages show a default value that is different from the defaultOption in the ECharts source (apache/echarts, master):

Option Doc said Source default
legend.itemGap 10 8 (src/component/legend/LegendModel.ts)
series-chord.padAngle 0 3 (src/chart/chord/ChordSeries.ts)
series-heatmap.blurSize 20 30 (src/chart/heatmap/HeatmapSeries.ts)
series-lines.large true (English page only; the Chinese page already says false) false (src/chart/lines/LinesSeries.ts)

This PR changes those values in the en and zh pages. For legend.itemGap and series-chord.padAngle it also changes the default of the example UI control, so the editor starts from the real default.

Docs only. Found by comparing the ## name(type) = default lines with the defaultOption objects. I left out cases where the doc describes the resolved behaviour (for example grid.outerBoundsContain: 'auto').

Prepared with an AI assistant; each value was compared against the source files named above.

- legend.itemGap: 8 (LegendModel defaultOption), was 10
- series-chord.padAngle: 3 (ChordSeries defaultOption), was 0
- series-heatmap.blurSize: 30 (HeatmapSeries defaultOption), was 20
- series-lines.large: false (LinesSeries defaultOption), was true in
  the English page only

This branch has not been deployed

No deployments
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.

1 participant