Skip to content

Set border to 0px/transparent on AreaClosed Chart #1399

Answered by hshoff
LukasGirsch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lukaa,

You can use the standard svg attributes to modify the stroke.

can set the stroke width to 0:

<AreaClosed
  // ...
  strokeWidth={0}
/>

or set the stroke color to transparent:

<AreaClosed
  // ...
  stroke="transparent"
/>

Then add a <LinePath /> after the <AreaClosed /> to render the line on top of the area.

<AreaClosed
  // ...
  strokeWidth={0}
/>
<LinePath
  // ...
  strokeWidth={3}
  stroke="blue"
/>

Replies: 1 comment 1 reply

Comment options

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

Answer selected by LukasGirsch
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
Converted from issue

This discussion was converted from issue #1398 on December 24, 2021 18:57.