Skip to content

v1.0.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@bherbruck bherbruck released this 20 May 21:02
· 16 commits to main since this release
4eb59a8

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 classic echarts or tree-shaking echarts/core with use
    • 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