From 9bc3ba5a6a371549dbb0222c28508bea05178d3a Mon Sep 17 00:00:00 2001 From: Ishita Rander <1ishitarander@gmail.com> Date: Tue, 27 Jan 2026 11:06:52 +0530 Subject: [PATCH] fix(custom): preserve cursor for renderItem elements on hover --- src/chart/custom/CustomView.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/chart/custom/CustomView.ts b/src/chart/custom/CustomView.ts index 3665b1e93a..84b2aca24d 100644 --- a/src/chart/custom/CustomView.ts +++ b/src/chart/custom/CustomView.ts @@ -284,12 +284,19 @@ export default class CustomChartView extends ChartView { const progressiveEls: Element[] = this._progressiveEls = []; function setIncrementalAndHoverLayer(el: Displayable) { - if (!el.isGroup) { - el.incremental = true; - el.ensureState('emphasis').hoverLayer = true; - } + if (!el.isGroup) { + el.incremental = true; + + const emphasisState = el.ensureState('emphasis'); + emphasisState.hoverLayer = true; + + if (el.cursor) { + emphasisState.cursor = el.cursor; } - for (let idx = params.start; idx < params.end; idx++) { + } +} + + for (let idx = params.start; idx < params.end; idx++) { const el = createOrUpdateItem( null, null, idx, renderItem(idx, payload), customSeries, this.group, data );