up
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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:
|
||||
360→ stroke="var(--primary)"
|
||||
361→ strokeWidth={2}
|
||||
362→ dot={false}
|
||||
363→ />
|
||||
364→ {/* 高亮添加日期的K线点 */}
|
||||
365→ <Scatter
|
||||
366→ yAxisId="left"
|
||||
367→ dataKey="close"
|
||||
368→ fill="#fbbf24"
|
||||
369→ shape={(props: any) => {
|
||||
370→ const { cx, cy, payload } = props;
|
||||
371→ // 非添加日期返回透明小圆点(不可见)
|
||||
372→ if (!payload.isAddedDate) {
|
||||
373→ return <circle cx={cx} cy={cy} r={0} fill="transparent" />;
|
||||
374→ }
|
||||
375→ return (
|
||||
376→ <circle
|
||||
377→ cx={cx}
|
||||
378→ cy={cy}
|
||||
379→ r={8}
|
||||
380→ fill="#fbbf24"
|
||||
381→ stroke="#f59e0b"
|
||||
382→ strokeWidth={2}
|
||||
383→ />
|
||||
384→ );
|
||||
385→ }}
|
||||
386→ />
|
||||
387→ </ComposedChart>
|
||||
388→ </ResponsiveContainer>
|
||||
389→ </div>
|
||||
390→
|
||||
391→ {/* Legend */}
|
||||
Reference in New Issue
Block a user