I am currently working on creating a hollow graph circle where each division corresponds to a specific percentage.
Issue: The three colors forming the circle should occupy a certain percentage of the circle. For example, if color 1 = 33%, color 2 = 33% and color 3 = 33%, then the circle should display these colors in equal proportions. At the moment, the circle does not accurately represent the percentage division of colors. Any assistance on this matter would be greatly appreciated.
UPDATE: Is it possible to achieve this using HTML canvas?
.a{
margin: 0;
width: 90px;
text-align: center;
height: 90px;
border-radius: 50%;
border: 4px solid transparent;
background-size: 100% 100%, 50% 50%, 50% 50%;
background-repeat: no-repeat;
background-image: linear-gradient(white, white),
linear-gradient(30deg, rgb(240,120,16) 100%, lightgrey 0%),
linear-gradient(120deg, rgb(127,127,127) 100%, lightgrey 0%),
linear-gradient(310deg, rgb(255,192,0) 100%, lightgrey 0%);
background-position: center center, left top, right top, left bottom, right bottom;
background-origin: content-box, border-box, border-box, border-box, border-box;
background-clip: content-box, border-box, border-box, border-box, border-box;
}
<div class="a"></div>