I want to create a circle that is divided into 6 sectors based on some values, the angle of the sector depends on some parameter. The larger the value of the parameter, the more radians of the circle.
What I understand can be built by creating a circle that has these 6 different parts, and then putting another div on top that creates this white ring as an effect. I know how to create a circle, but I canβt understand how to dynamically divide it into different colored sectors.
Is this possible with CSS, is there a solution using Javascript. Any help would be greatly appreciated.

source share