Hello
This JS produces three different sized circles with percentages in them and I have customised them partly, but how would I change the text colour that appears, please? At the moment it is black and I wish it to be white:
[CODE]<script>
(function () {
var n, id, progress;
progress = new CircularProgress({
radius: 20
});
document.getElementById(‘myPosition’).appendChild(progress.el);
n = 0;
id = setInterval(function () {
if (n == 100) clearInterval(id);
progress.update(n++);
}, 100);
})();
(function () {
var n, id, progress;
progress = new CircularProgress({
radius: 40,
lineWidth: 2,
strokeStyle: ‘#FFAED7’,
initial: {
lineWidth: 4,
strokeStyle: ‘#ffffff’
}
});
document.getElementById(‘myPosition’).appendChild(progress.el);
n = 0;
id = setInterval(function () {
if (n == 100) clearInterval(id);
progress.update(n++);
}, 70);
})();
(function () {
var n, id, progress;
progress = new CircularProgress({
radius: 70,
strokeStyle: ‘#FFAED7’,
lineCap: ‘square’,
lineJoin: ’round’,
lineWidth: 5,
shadowBlur: 0,
shadowColor: ‘#ffffff’,
text: {
font: ‘bold 15px arial’,
shadowBlur: 0
},
initial: {
strokeStyle: ‘#ffffff’,
lineCap: ‘square’,
lineJoin: ’round’,
lineWidth: 5,
shadowBlur: 10,
shadowColor: ‘#FFB3D8’
}
});
document.getElementById(‘myPosition’).appendChild(progress.el);
n = 0;
id = setInterval(function () {
if (n == 100) clearInterval(id);
progress.update(n++);
}, 30);
})();
</script>
Thank you.