mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
Update packages/mermaid/src/diagrams/pie/pieParser.ts
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
@@ -11,8 +11,7 @@ function populateDb(ast: Pie, db: PieDB) {
|
|||||||
populateCommonDb(ast, db);
|
populateCommonDb(ast, db);
|
||||||
db.setShowData(ast.showData);
|
db.setShowData(ast.showData);
|
||||||
ast.sections.map((section: PieSection) => {
|
ast.sections.map((section: PieSection) => {
|
||||||
const { label, value } = section;
|
db.addSection(section);
|
||||||
db.addSection({ label, value });
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user