v1.0.0-rc1
Pre-release
Pre-release
What's Changed
- Everything
- New API and working tree shaking by @bherbruck in #18
init
function must be passed into the component, can be either from classicecharts
or tree-shakingecharts/core
withuse
- This will likely be changed as the echarts tree-shaking API matures
- Events are now available, typing for non-mouse events is incomplete
<script>
import { Chart } from 'svelte-echarts'
import { init, use } from 'echarts/core'
import type { EChartsOption } from 'echarts'
import { BarChart } from 'echarts/charts'
import { GridComponent, TitleComponent } from 'echarts/components'
import { CanvasRenderer } from 'echarts/renderers'
// now with tree-shaking
use([BarChart, GridComponent, CanvasRenderer, TitleComponent])
let options = {
// some options...
}
</script>
<div class="app">
<Chart {init} {options} />
</div>
Full Changelog: v0.1.1...v1.0.0-rc1