mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fix for broken Pie Diagram for d3 v6 upgrade
This commit is contained in:
parent
571816fc28
commit
719de71de4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user