I have created pie chart like this using HTML and css
I tried Below Code -
HTML -
<div class="pie-chart"></div>
CSS -
.pie-chart {
margin-left: 10px;
--size: 8rem;
--fg: #369;
--bg: #def;
width: var(--size);
height: var(--size);
border-radius: 50%;
display: grid;
place-items: center;
background:
radial-gradient(closest-side, white 40%, transparent 0 99.9%, white 0),
conic-gradient(
#301B84 0 45%,
#715fa5 45% 65%,
#aca6cd 65% 75%,
#d6d0e4 75% 100%);
color: var(--fg);
}
Expecting It should look like below pie chart (inner white border want to create it)-
Note - jQuery, Javascript is not allow for this (only html and css is allowed)
can someone help me with this.?