update pay function
This commit is contained in:
@@ -118,14 +118,8 @@ const TradingViewChart: React.FC<TradingViewChartProps> = ({
|
||||
visible: true,
|
||||
},
|
||||
localization: {
|
||||
timeFormatter: (time: any) => {
|
||||
// 格式化时间显示
|
||||
const date = new Date(time * 1000);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
locale: 'zh-CN',
|
||||
dateFormat: 'yyyy-MM-dd',
|
||||
},
|
||||
handleScroll: {
|
||||
mouseWheel: true,
|
||||
@@ -174,9 +168,6 @@ const TradingViewChart: React.FC<TradingViewChartProps> = ({
|
||||
return timeA - timeB;
|
||||
});
|
||||
|
||||
console.log('📊 转换后的图表数据(前3条):', chartData.slice(0, 3));
|
||||
console.log('📊 数据总数:', chartData.length);
|
||||
|
||||
// 设置数据
|
||||
lineSeries.setData(chartData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user