Skip to content

Commit b402028

Browse files
committed
opt: opt indicator tooltip display
1 parent 6e188f2 commit b402028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/IndicatorTooltipView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export default class IndicatorTooltipView extends View<YAxis> {
343343
const thousandsSeparator = chartStore.getThousandsSeparator()
344344
const legends: TooltipLegend[] = []
345345
if (indicator.visible) {
346-
const data = result[dataIndex] ?? result[dataIndex - 1] ?? {}
346+
const data = result[dataIndex] ?? {}
347347
const defaultValue = tooltipStyles.legend.defaultValue
348348
eachFigures(indicator, dataIndex, styles, (figure: IndicatorFigure, figureStyles: Required<IndicatorFigureStyle>) => {
349349
if (isString(figure.title)) {

0 commit comments

Comments
 (0)