feat(shortcodes): add width and height params for echarts shortc… (#192)
This commit is contained in:
@@ -909,6 +909,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 >}}
|
||||
|
||||
@@ -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 >}}
|
||||
|
||||
@@ -910,6 +910,16 @@ data = [
|
||||
}
|
||||
{{< /echarts >}}
|
||||
|
||||
`echarts` shortcode 还有以下命名参数:
|
||||
|
||||
* **width** *[可选]* (**第一个**位置参数)
|
||||
|
||||
{{< version 0.2.0 >}} 数据可视化的宽度, 默认值是 `100%`.
|
||||
|
||||
* **height** *[可选]* (**第二个**位置参数)
|
||||
|
||||
{{< version 0.2.0 >}} 数据可视化的高度, 默认值是 `30rem`.
|
||||
|
||||
## `mapbox`
|
||||
|
||||
{{< version 0.2.0 >}}
|
||||
|
||||
Reference in New Issue
Block a user