After putting my coding skills to the test, I successfully crafted a stunning pie chart using only HTML and CSS.
https://i.sstatic.net/5xCbl.png
Here's the code snippet I tinkered with:
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);
}
I am striving for the eye-catching look of this pie chart, particularly focusing on creating that inner white border which adds an extra touch of elegance:
https://i.sstatic.net/uqmRh.png
However, please keep in mind that I am strictly limiting myself to HTML and CSS alone, without incorporating jQuery or Javascript. Can anyone offer assistance in accomplishing this task?