Set priceFormat precision 0 for chart series to display integer prices

This commit is contained in:
DiTus
2026-03-18 23:11:32 +01:00
parent dd53b13979
commit c7cf662da2

View File

@ -332,6 +332,7 @@ constructor() {
wickDownColor: '#ff9800', wickDownColor: '#ff9800',
lastValueVisible: false, lastValueVisible: false,
priceLineVisible: false, priceLineVisible: false,
priceFormat: { type: 'price', precision: 0, minMove: 1 }
}, 0); }, 0);
this.avgPriceSeries = this.chart.addSeries(LightweightCharts.LineSeries, { this.avgPriceSeries = this.chart.addSeries(LightweightCharts.LineSeries, {
@ -342,7 +343,8 @@ constructor() {
priceLineVisible: false, priceLineVisible: false,
crosshairMarkerVisible: false, crosshairMarkerVisible: false,
title: '', title: '',
}); priceFormat: { type: 'price', precision: 0, minMove: 1 }
});
this.currentPriceLine = this.candleSeries.createPriceLine({ this.currentPriceLine = this.candleSeries.createPriceLine({
price: 0, price: 0,