軽量チャートで基準線をフォーマットする方法は?
以下は軽量チャートです。ご覧のとおり、水平線の市場 ( US$449,308,044
) は非常に多くのスペースを占めています。
このテキストをフォーマットする方法はありますか?
var chart = createChart(ref.current, {
width: width,
height: height,
layout: {
backgroundColor: 'transparent',
textColor: textColor,
},
rightPriceScale: {
scaleMargins: {
top: topScale,
bottom: 0,
},
borderVisible: false,
},
timeScale: {
borderVisible: false,
},
grid: {
horzLines: {
color: 'rgba(197, 203, 206, 0.5)',
visible: false,
},
vertLines: {
color: 'rgba(197, 203, 206, 0.5)',
visible: false,
},
},
crosshair: {
horzLine: {
visible: false,
labelVisible: false,
},
vertLine: {
visible: true,
style: 0,
width: 2,
color: 'rgba(32, 38, 46, 0.1)',
labelVisible: false,
},
},
localization: {
priceFormatter: (val) => formattedNum(val, true),
},
});