Skip to content

How to customize recharts-active-dot? #4358

Answered by ckifer
15077693d asked this question in Q&A
Discussion options

You must be logged in to vote

Hi - recharts uses SVGs meaning styling is done via svg properties rather than CSS properties - use stroke and fill rather than color and backgroundColor

      <Line
        type="monotone"
        dataKey="pv"
        stroke="#8884d8"
        activeDot={{ r: 8, fill: "#111", stroke: "blue" }}
      />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ckifer
Comment options

Answer selected by ckifer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants