up
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
The file /home/project/src/routes/stock.$code.tsx has been updated. Made 1 replacement.
|
||||
|
||||
Here's the result of running `cat -n` on a snippet of the edited file:
|
||||
340→ stroke="var(--primary)"
|
||||
341→ strokeWidth={2}
|
||||
342→ dot={false}
|
||||
343→ />
|
||||
344→ {/* 高亮添加日期的K线点 - 只渲染isAddedDate=true的点 */}
|
||||
345→ {chartData.filter(d => d.isAddedDate).map((d, idx) => (
|
||||
346→ <Scatter
|
||||
347→ key={`added-${idx}`}
|
||||
348→ yAxisId="left"
|
||||
349→ data={[{ date: d.date, close: d.close }]}
|
||||
350→ dataKey="close"
|
||||
351→ fill="hsl(var(--destructive))"
|
||||
352→ shape="circle"
|
||||
353→ r={6}
|
||||
354→ />
|
||||
355→ ))}
|
||||
356→ </ComposedChart>
|
||||
357→ </ResponsiveContainer>
|
||||
358→ </div>
|
||||
359→
|
||||
360→ {/* Legend */}
|
||||
Reference in New Issue
Block a user