mirror of
https://github.com/klinecharts/KLineChart.git
synced 2024-11-25 16:22:43 +08:00
opt: opt indicator last value display
This commit is contained in:
parent
270685aac2
commit
437b80c080
@ -41,7 +41,7 @@ export default class IndicatorLastValueView extends View<YAxis> {
|
||||
const decimalFoldThreshold = chartStore.getDecimalFoldThreshold()
|
||||
indicators.forEach(indicator => {
|
||||
const result = indicator.result
|
||||
const indicatorData = result[dataIndex]
|
||||
const indicatorData = result[dataIndex] ?? result[dataIndex - 1]
|
||||
if (isValid(indicatorData) && indicator.visible) {
|
||||
const precision = indicator.precision
|
||||
eachFigures(dataList, indicator, dataIndex, defaultStyles, (figure: IndicatorFigure, figureStyles: Required<IndicatorFigureStyle>) => {
|
||||
|
Loading…
Reference in New Issue
Block a user