Releases: bherbruck/svelte-echarts
Releases Β· bherbruck/svelte-echarts
v1.0.0-rc3
chore: update version
v1.0.0-rc2
fixed initial render
v1.0.0-rc1
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