I want to create a circle which is divided into 6 sectors based on some values, the angle of the sector is dependent on some parameter. The bigger the value of the parameter, the larger the radians of the circle.
The way I understand it can be built by making a circle which has this 6 different portions, and then put another div on top, which creates this white ring like effect. I know how to create circle, but not able to understand how to dynamically divide it into different colored sectors.
Is this even possible with CSS, does a solution exist using Javascript. Any help will be deeply appreciated.