-
I can set display none on .recharts-active-dot nut i cannot set the color or background color. |
Beta Was this translation helpful? Give feedback.
Answered by
ckifer
Mar 28, 2024
Replies: 1 comment 1 reply
-
Hi - recharts uses SVGs meaning styling is done via svg properties rather than CSS properties - use <Line
type="monotone"
dataKey="pv"
stroke="#8884d8"
activeDot={{ r: 8, fill: "#111", stroke: "blue" }}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ckifer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - recharts uses SVGs meaning styling is done via svg properties rather than CSS properties - use
stroke
andfill
rather thancolor
andbackgroundColor