All Projects β†’ liyuanqiu β†’ echarts-for-svelte

liyuanqiu / echarts-for-svelte

Licence: MIT license
πŸ“ˆ Baidu Echarts(v3.0 & v4.0) components for Svelte wrapper.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to echarts-for-svelte

Flopflip
🎚Flip or flop features in your React application in real-time backed by flag provider of your choice 🚦
Stars: ✭ 334 (+1236%)
Mutual labels:  rollup, lerna
manager
OVHcloud Control Panel
Stars: ✭ 153 (+512%)
Mutual labels:  rollup, lerna
Sketchmine
Tools to validate, generate and analyse sketch files from web pages
Stars: ✭ 114 (+356%)
Mutual labels:  rollup, lerna
Workflow
δΈ€δΈͺε·₯作桁平台
Stars: ✭ 1,888 (+7452%)
Mutual labels:  rollup, lerna
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+1736%)
Mutual labels:  rollup, lerna
Pectin
Rollup-related tools for incremental transpilation of packages in Lerna-based monorepos
Stars: ✭ 50 (+100%)
Mutual labels:  rollup, lerna
Ol3echarts
🌏 πŸ“Š ol3Echarts | a openlayers extension to echarts
Stars: ✭ 229 (+816%)
Mutual labels:  rollup, echarts
pattern-library
AXA CH UI component library. Please share, comment, create issues and work with us!
Stars: ✭ 103 (+312%)
Mutual labels:  lerna
vue-cli-template-library
Template for developing open-source vue.js libraries with Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease
Stars: ✭ 61 (+144%)
Mutual labels:  rollup
firebase-functions-typescript-starter
Create & test Firebase Cloud Functions in TypeScript
Stars: ✭ 101 (+304%)
Mutual labels:  rollup
Harold
Compares frontend project bundles
Stars: ✭ 241 (+864%)
Mutual labels:  rollup
vulcan-npm
The full-stack JavaScript App Framework
Stars: ✭ 26 (+4%)
Mutual labels:  lerna
all-search
all-search ε…¨ζœοΌŒδΈ€δΈͺζœη΄’εΌ•ζ“ŽεΏ«ζ·θ·³θ½¬θœε•
Stars: ✭ 105 (+320%)
Mutual labels:  rollup
electron-template
Electron multiwindow mode template
Stars: ✭ 65 (+160%)
Mutual labels:  rollup
puruvjdev2
puruvj.dev
Stars: ✭ 11 (-56%)
Mutual labels:  rollup
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+96%)
Mutual labels:  echarts
echarts-handbook
Apache ECharts Handbook
Stars: ✭ 59 (+136%)
Mutual labels:  echarts
monorepo-utils
A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
Stars: ✭ 143 (+472%)
Mutual labels:  lerna
server-monitor-ui
Server Operation Monitor
Stars: ✭ 17 (-32%)
Mutual labels:  echarts
rollup-boilerplate
Simple boilerplate to make components libraries with React.
Stars: ✭ 13 (-48%)
Mutual labels:  rollup

echarts-for-svelte was suspended for a long time, because Svelte doesn't support Typescript. I planned to relaunch the development process right after Typescript is supported.

IMPORTANT

[email protected] doesn't support svelte>3.15.0, because it seems like [email protected] introduced some breaking changes(didn't make effort to locate them). So at this moment, please do not use [email protected] with svelte>3.15.0. I'll fix this issue when svelte begins to support Typescript.

echarts-for-svelte

A very simple echarts(v3.0 & v4.0) wrapper for svelte.

Inspired by echarts-for-react

lerna styled with prettier minified + gzip

Installation

yarn add echarts-for-svelte
# or
npm install --save echarts-for-svelte

Basic Example

πŸ‘‰ Try echarts-for-svelte in CodeSandbox

<!-- App.svelte -->
<script>
  import echarts from 'echarts';
  import ECharts from 'echarts-for-svelte';

  let option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    },
    yAxis: {
      type: 'value',
    },
    series: [
      {
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
      },
    ],
  };
</script>

<ECharts {echarts} {option} />

echarts

API Reference

import ECharts from 'echarts-for-svelte';

Component Props

// echarts lib
// import echarts from 'echarts';
// or import echarts from 'echarts/lib/echarts';
export let echarts;

// the echarts option config, can see http://echarts.baidu.com/option.html#title.
export let option;

// the class of echarts div. you can setting the css style of charts by class name.
export let className = '';

// the style of echarts div.
export let style = '';

// when setOption, not merge the data, default is false.
// See http://echarts.baidu.com/api.html#echartsInstance.setOption.
export let notMerge = false;

// when setOption, lazy update the data, default is false.
// See http://echarts.baidu.com/api.html#echartsInstance.setOption.
export 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).
export let theme = null;

// when the chart is ready, will callback the function
export let onChartReady = () => {};

// the echarts loading option config
// See http://echarts.baidu.com/api.html#echartsInstance.showLoading
export let loadingOption = null;

// manually set loading status
export let loading = false;

// binding the echarts event, will callback with the echarts event object as it's paramter.
// {
//   click() {...},
//   legendselectchanged() {...},
// }
export let events = {};

// the opts of echarts. object, will be used when initial echarts instance by echarts.init
export let opts = {};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].