This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-marker in repository https://gitbox.apache.org/repos/asf/echarts.git
commit ca03ff8e702b06127922044f480b6490f395f6a6 Author: Ovilia <[email protected]> AuthorDate: Thu Jun 19 18:50:31 2025 +0800 fix(marker): overwrite value only if type is not defined --- src/component/marker/markerHelper.ts | 2 +- test/markPoint-stock.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/marker/markerHelper.ts b/src/component/marker/markerHelper.ts index 37ce88eed..339bcc567 100644 --- a/src/component/marker/markerHelper.ts +++ b/src/component/marker/markerHelper.ts @@ -154,7 +154,7 @@ export function dataTransform( if (item.coord == null || !isArray(dims)) { item.coord = []; const baseAxis = seriesModel.getBaseAxis(); - if (baseAxis) { + if (baseAxis && item.type && markerTypeCalculator[item.type]) { const otherAxis = coordSys.getOtherAxis(baseAxis); if (otherAxis) { item.value = numCalculate(data, data.mapDimension(otherAxis.dim), item.type); diff --git a/test/markPoint-stock.html b/test/markPoint-stock.html index c21cc59f8..d650d62d2 100644 --- a/test/markPoint-stock.html +++ b/test/markPoint-stock.html @@ -99,6 +99,7 @@ under the License. data, showSymbol: false, markPoint: { + silent: true, symbol: 'circle', symbolSize: 0, label: { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
