#15941·echarts

Breaking change from 5.2.0 to 5.2.1: AxisBaseOption.data no longer available

Author: isaaclymanCreated Oct 25, 2021Updated Sep 13, 2026
Labelsenstale

Version

5.2.1

Steps to reproduce

  1. Build a chart referring to the AxisBaseOption.data field, e.g. in EChartsOption.xAxis
  2. Upgrade from echarts 5.2.0 to 5.2.1
  3. TypeScript compiler fails because the data field does not exist

What is expected?

A breaking change should not exist in a patch version upgrade.

What is actually happening?

Code breaks when patch version is upgraded.


See the data field here in 5.2.0: https://github.com/apache/echarts/blob/41b7769648333d0a1da1101ebebfc9174d618863/src/coord/axisCommonTypes.ts#L100

In 5.2.1 it's been moved to a different type: https://github.com/apache/echarts/blob/1c70026ec4d0bc18ac91163da7d11ed59c401ed4/src/coord/axisCommonTypes.ts#L120