I am try to implement a custom pie chart with css.
Is there any I can add a little padding or box-shadows to each conic-gradient segments?
Code
HTML
<div class="pie-chart">
</div>
CSS
.pie-chart {
background:
radial-gradient(
circle closest-side,
transparent 66%,
white 0
),
conic-gradient(
#8C071F 90deg,
#F2884B 0 180deg,
#F2B705 0 270deg,
#6CBAD9 0
);
position: relative;
width: 150px;
min-height: 350px;
margin: 0;
outline: px solid #ccc;
}
border-radius, box-shadow and some transformation can easily solve your problem without the need of
conic-gradient