Set priceFormat precision 0 for chart series to display integer prices
This commit is contained in:
@ -332,6 +332,7 @@ constructor() {
|
||||
wickDownColor: '#ff9800',
|
||||
lastValueVisible: false,
|
||||
priceLineVisible: false,
|
||||
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||
}, 0);
|
||||
|
||||
this.avgPriceSeries = this.chart.addSeries(LightweightCharts.LineSeries, {
|
||||
@ -342,7 +343,8 @@ constructor() {
|
||||
priceLineVisible: false,
|
||||
crosshairMarkerVisible: false,
|
||||
title: '',
|
||||
});
|
||||
priceFormat: { type: 'price', precision: 0, minMove: 1 }
|
||||
});
|
||||
|
||||
this.currentPriceLine = this.candleSeries.createPriceLine({
|
||||
price: 0,
|
||||
|
||||
Reference in New Issue
Block a user