Fix for broken Pie Diagram for d3 v6 upgrade

This commit is contained in:
Ashish Jain 2021-08-19 19:50:20 +02:00
parent 571816fc28
commit 719de71de4

View File

@ -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) {