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