mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-25 11:16:53 +02:00
chore: Use yaml instead of note for standalone config:
example
This commit is contained in:
@@ -138,9 +138,15 @@ xychart-beta
|
|||||||
|
|
||||||
## Chart Theme Variables
|
## Chart Theme Variables
|
||||||
|
|
||||||
> **Note**
|
Themes for xychart resides inside xychart attribute so to set the variables use this syntax:
|
||||||
> Themes for xychart resides inside xychart attribute so to set the variables use this syntax
|
|
||||||
> %%{init: { "themeVariables": {"xyChart": {"titleColor": "#ff0000"} } }}%%
|
```yaml
|
||||||
|
config:
|
||||||
|
themeVariables:
|
||||||
|
xyChart:
|
||||||
|
titleColor: "#ff0000"
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| ---------------- | --------------------------------------------------------- |
|
| ---------------- | --------------------------------------------------------- |
|
||||||
|
@@ -126,9 +126,15 @@ xychart-beta
|
|||||||
|
|
||||||
## Chart Theme Variables
|
## Chart Theme Variables
|
||||||
|
|
||||||
```note
|
Themes for xychart resides inside xychart attribute so to set the variables use this syntax:
|
||||||
Themes for xychart resides inside xychart attribute so to set the variables use this syntax
|
|
||||||
%%{init: { "themeVariables": {"xyChart": {"titleColor": "#ff0000"} } }}%%
|
```yaml
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
themeVariables:
|
||||||
|
xyChart:
|
||||||
|
titleColor: "#ff0000"
|
||||||
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
|
Reference in New Issue
Block a user