Echarts render in html customElements.
npm install echarts-el

- Auto fit parent element, so your do not need to resize it.
- Rerender if data changed.
``bash`
npm install echarts-el
Or import in the fly.
`html`
---
This element will fit parent element and auto resize when parent element size change.
`html`
{
tooltip: {
show: true,
},
grid: {
x: 0,
y: 0,
x2: 0,
y2: 0,
},
xAxis: [
{
min: 0,
scale: true,
type: 'value',
},
],
yAxis: [
{
type: 'category',
show: false,
data: ['2021-01', '2021-02', '2021-03', '2021-04', '2021-05', '2021-06'],
},
],
series: [
{
type: 'bar',
data: [2123, 3354, 4012, 2175, 5800, 2630],
},
],
}
Render chart:
!bar-chart
- loading: Show Loading chartrenderer
- : Use echarts svg or canvas renderertextContent
- : EChart options, JSON string.
- resetChart: Method to reset chart renderchart
- : Echart instanceoptions`: Chart render options, readonly.
-
- Add map register element.