
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@echarts-component/vue
Advanced tools
🧩 基于 Vue 3 的组件化 ECharts 图表框架
使用 Vue 组件的方式来配置和渲染 ECharts,让图表构建更直观、声明式、可组合。
setOptionuseVueEcharts()npm install @echarts-component/vue
# or
pnpm add @echarts-component/vue
# or
yarn add @echarts-component/vue
<script setup>
import { VueEcharts, Pie, XAxis, Title } from '@echarts-component/vue'
const data = [
{ value: 40, name: 'A' },
{ value: 32, name: 'B' },
{ value: 28, name: 'C' },
]
</script>
<template>
<VueEcharts>
<Title text="Demo Pie Chart" left="center" />
<XAxis :data="[1, 2, 3, 4]" />
<Pie :data="data" :center="['50%', '50%']" />
</VueEcharts>
</template>
| 组件名 | 对应配置字段 | 描述 |
|---|---|---|
<VueEcharts> | 容器组件 | 提供 ECharts 实例并收集配置 |
<Pie /> | series(type: pie) | 饼图组件 |
<Line /> | series(type: line) | 折线图组件 |
<Bar /> | series(type: bar) | 柱状图组件 |
<XAxis /> | xAxis | X 轴配置 |
<YAxis /> | yAxis | Y 轴配置 |
<Title /> | title | 图表标题 |
<Grid /> | grid | 坐标轴网格配置 |
<Tooltip /> | tooltip | 悬浮提示 |
<Legend /> | legend | 图例组件 |
... | ... | ... |
该项目灵感来源于:
目标是让每个配置项都可以通过 Vue 组件表达,使图表逻辑更清晰、可复用、响应式更自然。
Line 折线图Bar 柱状图Pie 饼图more 更多图表v-for 渲染多个图形useVueEcharts() 组合式调用方式MIT License © 2025 hboot
FAQs
Echarts component for Vue
The npm package @echarts-component/vue receives a total of 69 weekly downloads. As such, @echarts-component/vue popularity was classified as not popular.
We found that @echarts-component/vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.