From 719de71de4eece268ff76cb1328cc1411d6ebdaf Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Thu, 19 Aug 2021 19:50:20 +0200 Subject: [PATCH] Fix for broken Pie Diagram for d3 v6 upgrade --- src/diagrams/pie/pieRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagrams/pie/pieRenderer.js b/src/diagrams/pie/pieRenderer.js index 940594a5d..4532cce50 100644 --- a/src/diagrams/pie/pieRenderer.js +++ b/src/diagrams/pie/pieRenderer.js @@ -81,7 +81,7 @@ export const draw = (txt, id) => { ]; // Set the color scale - var color = scaleOrdinal().domain(data).range(myGeneratedColors); + var color = scaleOrdinal().range(myGeneratedColors); // Compute the position of each group on the pie: var pie = d3pie().value(function (d) {