Skip to content
Snippets Groups Projects
Commit caba0a3f authored by AndiMajore's avatar AndiMajore
Browse files

left background panel color as option for white part of pi-chart

parent 062bed3b
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,9 @@ export function pieChartContextRenderer({ctx, x, y, state: {selected, hover}, st
}
// draw white background circle
ctx.beginPath();
// alternatively window.getComputedStyle(document.documentElement).getPropertyValue('--drgstn-panel');?
ctx.fillStyle = "white"
// or fill like background of graph panel
// ctx.fillStyle= window.getComputedStyle(document.documentElement).getPropertyValue('--drgstn-panel');
ctx.arc(x, y, style.size, 0, 2 * Math.PI,false);
ctx.fill();
ctx.stroke();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment