echarts-for-svelte
A very simple echarts(v3.0 & v4.0) wrapper for svelte.
Inspired by echarts-for-react

Installation
yarn add echarts-for-svelte# or npm install --save echarts-for-svelte
Basic Example
👉 Try echarts-for-svelte
in CodeSandbox
<!-- App.svelte -->
API Reference
;
Component Props
// echarts lib// import echarts from 'echarts';// or import echarts from 'echarts/lib/echarts';let echarts; // the echarts option config, can see http://echarts.baidu.com/option.html#title.let option; // the class of echarts div. you can setting the css style of charts by class name.let className = ''; // the style of echarts div.let style = ''; // when setOption, not merge the data, default is false.// See http://echarts.baidu.com/api.html#echartsInstance.setOption.let notMerge = false; // when setOption, lazy update the data, default is false.// See http://echarts.baidu.com/api.html#echartsInstance.setOption.let lazyUpdate = false; // the theme of echarts. string, should registerTheme before use it// (theme object format: https://github.com/ecomfe/echarts/blob/master/theme/dark.js).let theme = null; // when the chart is ready, will callback the functionlet {}; // the echarts loading option config// See http://echarts.baidu.com/api.html#echartsInstance.showLoadinglet loadingOption = null; // manually set loading statuslet loading = false; // binding the echarts event, will callback with the echarts event object as it's paramter.// {// click() {...},// legendselectchanged() {...},// }let events = {}; // the opts of echarts. object, will be used when initial echarts instance by echarts.initlet opts = {};