🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ioto/use-echarts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ioto/use-echarts

Vue 3 ECharts wrapper + composable (useEcharts) with slots and resize handling.

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

use-echarts

Vue 3 ECharts wrapper component + composable (useEcharts) for building charts with a clean API, slot-based layout, and resize handling.

For Chinese documentation, see: README.zh-CN.md.

Install

npm i use-echarts echarts

This package uses peer dependencies.

Quick Start

import { useEcharts } from "use-echarts";

const { EChartComponent, setOptions } = useEcharts({});

setOptions({
    series: [{ type: "bar", data: [1, 2, 3] }],
});

Render EChartComponent in Vue.

API

useEcharts(options?)

Returns:

  • EChartComponent: Vue component that renders the chart
  • setOptions(options): sets ECharts option object or setOption args array
  • getOptions(): gets last set options
  • getInstance(): returns ECharts instance or null before ready

Peer Dependencies

  • vue (Vue 3)
  • echarts

Optional:

  • echarts-gl
  • echarts-liquidfill

SSR

This library uses browser APIs (e.g. ResizeObserver) and must run on the client.

Development

npm i
npm test
npm run build

Release

Checklist:

  • Update version (semver)
  • Run npm run build and npm test
  • Run npm run pack:check
  • Publish: npm publish
  • Create git tag and GitHub release notes

License

MIT. See LICENSE.

Keywords

vue

FAQs

Package last updated on 06 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts