mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Fix for broken Pie Diagram for d3 v6 upgrade
This commit is contained in:
@@ -81,7 +81,7 @@ export const draw = (txt, id) => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Set the color scale
|
// 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:
|
// Compute the position of each group on the pie:
|
||||||
var pie = d3pie().value(function (d) {
|
var pie = d3pie().value(function (d) {
|
||||||
|
Reference in New Issue
Block a user