Skip to content

Commit f8d7f62

Browse files
committed
Docs: Mermaid Pie chart is now considered viable and update version used
1 parent 48cda23 commit f8d7f62

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

docs/src/markdown/extras/mermaid.md

+15-18
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,19 @@ journey
173173
Go downstairs: 5: Me
174174
Sit down: 5: Me
175175
```
176+
////
177+
178+
//// tab | Pie
179+
180+
```diagram
181+
pie
182+
title Key elements in Product X
183+
"Calcium" : 42.96
184+
"Potassium" : 50.05
185+
"Magnesium" : 10.01
186+
"Iron" : 5
187+
```
188+
176189
////
177190
///
178191

@@ -198,22 +211,6 @@ gantt
198211

199212
////
200213

201-
//// tab | Pie
202-
203-
Pie at times can seem to work great, but other times it can be hard to read or missing labels all together.
204-
Like the others in this list, it relates to sizing and scaling. For instance, if you were to view this on a
205-
mobile device, you'd likely see the key for the pie chart missing.
206-
207-
```diagram
208-
pie
209-
title Key elements in Product X
210-
"Calcium" : 42.96
211-
"Potassium" : 50.05
212-
"Magnesium" : 10.01
213-
"Iron" : 5
214-
```
215-
216-
////
217214
///
218215

219216
## Configuration
@@ -332,7 +329,7 @@ and provide the configuration. We also have the custom loader that is runs when
332329
end</code></pre>
333330

334331
<!-- Include Mermaid script and user config -->
335-
<script src="https://unpkg.com/mermaid@10.6.1/dist/mermaid.min.js"></script>
332+
<script src="https://cdn.jsdelivr.net/npm/mermaid@11.5.0/dist/mermaid.min.js"></script>
336333
<script>
337334
window.mermaidConfig = {
338335
startOnLoad: false,
@@ -506,7 +503,7 @@ markdown_extensions:
506503

507504
extra_javascript:
508505
- optionalConfig.js
509-
- https://unpkg.com/mermaid@10.6.1/dist/mermaid.min.js
506+
- https://cdn.jsdelivr.net/npm/mermaid@11.5.0/dist/mermaid.min.js
510507
- extra-loader.js
511508
```
512509

0 commit comments

Comments
 (0)