Set priceFormat precision 0 for LineSeries and BaselineSeries to hide decimals
This commit is contained in:
@ -922,7 +922,8 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
|
||||
lineStyle: plotLineStyle,
|
||||
title: plot.title || '',
|
||||
priceLineVisible: false,
|
||||
lastValueVisible: plot.lastValueVisible !== false
|
||||
lastValueVisible: plot.lastValueVisible !== false,
|
||||
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||
}, paneIndex);
|
||||
} else {
|
||||
series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, {
|
||||
@ -931,7 +932,8 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
|
||||
lineStyle: plotLineStyle,
|
||||
title: '',
|
||||
priceLineVisible: false,
|
||||
lastValueVisible: plot.lastValueVisible !== false
|
||||
lastValueVisible: plot.lastValueVisible !== false,
|
||||
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||
}, paneIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user