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,
|
lineStyle: plotLineStyle,
|
||||||
title: plot.title || '',
|
title: plot.title || '',
|
||||||
priceLineVisible: false,
|
priceLineVisible: false,
|
||||||
lastValueVisible: plot.lastValueVisible !== false
|
lastValueVisible: plot.lastValueVisible !== false,
|
||||||
|
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||||
}, paneIndex);
|
}, paneIndex);
|
||||||
} else {
|
} else {
|
||||||
series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, {
|
series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, {
|
||||||
@ -931,7 +932,8 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li
|
|||||||
lineStyle: plotLineStyle,
|
lineStyle: plotLineStyle,
|
||||||
title: '',
|
title: '',
|
||||||
priceLineVisible: false,
|
priceLineVisible: false,
|
||||||
lastValueVisible: plot.lastValueVisible !== false
|
lastValueVisible: plot.lastValueVisible !== false,
|
||||||
|
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||||
}, paneIndex);
|
}, paneIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user