feat(shortcodes): add width and height params for echarts shortc… (#192)

This commit is contained in:
Dillon
2020-03-21 20:52:12 +08:00
committed by GitHub
parent aed8734d83
commit b6ce753ae7
6 changed files with 34 additions and 4 deletions

View File

@@ -914,6 +914,16 @@ The rendered output looks like this:
}
{{< /echarts >}}
The `echarts` shortcode has also the following named parameters:
* **width** *[optional]* (**first** positional parameter)
{{< version 0.2.0 >}} Width of the data visualization, default value is `100%`.
* **height** *[optional]* (**second** positional parameter)
{{< version 0.2.0 >}} Height of the data visualization, default value is `30rem`.
## `mapbox`
{{< version 0.2.0 >}}