You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Embed interactive Chart.js charts directly in your slides using ```` ```chart ```` blocks. Charts are automatically styled with CDL theme colors and fonts.
514
+
515
+
**Basic example:**
516
+
517
+
````markdown
518
+
```chart
519
+
type: bar
520
+
labels: Q1, Q2, Q3, Q4
521
+
data: 120, 95, 140, 110
522
+
caption: Quarterly revenue
523
+
```
524
+
````
525
+
526
+
**Multi-dataset example:**
527
+
528
+
````markdown
529
+
```chart
530
+
type: line
531
+
labels: Jan, Feb, Mar, Apr, May
532
+
datasets:
533
+
- label: Model A
534
+
data: 82, 87, 91, 88, 93
535
+
- label: Model B
536
+
data: 75, 80, 85, 89, 92
537
+
palette: colorblind
538
+
caption: Model accuracy over time
539
+
```
540
+
````
541
+
542
+
**Supported chart types:**
543
+
544
+
| Type | Description |
545
+
|------|-------------|
546
+
|`bar`| Vertical bar chart |
547
+
|`line`| Line chart with smooth curves |
548
+
|`scatter`| Scatter plot |
549
+
|`pie`| Pie chart |
550
+
|`doughnut`| Doughnut chart |
551
+
|`radar`| Radar/spider chart |
552
+
553
+
For grouped bars, use multiple datasets with `type: bar`.
0 commit comments