feat(docs): Add docs for EChart block.

This commit is contained in:
Gervwyk 2021-03-24 10:37:29 +02:00
parent deff96504f
commit 9f7b31a809

View File

@ -0,0 +1,53 @@
# Copyright 2020-2021 Lowdefy, Inc
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
_ref:
path: templates/blocks/template.yaml.njk
vars:
block_type: EChart
category: display
schema: ../blocks/blocksBasic/src/blocks/EChart/EChart.json
filePath: blocks/display/EChart.yaml
init_property_values:
option:
xAxis:
type: category
data:
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
- Sun
yAxis:
type: value
series:
- type: bar
data:
- 150
- 230
- 224
- 218
- 135
- 147
- 260
description_content: |
[ECharts](https://echarts.apache.org/) is a feature rich javascript charting library.
This implementation is a minimal wrapper for the [echarts-for-react](https://www.npmjs.com/package/echarts-for-react) package. This means you write normal EChart config to create charts.
See the [ECharts docs](https://echarts.apache.org/en/api.html#echarts) for the chart settings API. See the [ECharts theme builder](https://echarts.apache.org/en/theme-builder.html) to crete beutiful custom themes.
> View more [EChart examples](https://echarts.apache.org/examples/en/index.html).