
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
ez-vue-chart
Advanced tools
结合ez-chart使用的vue组件,自动watch数据 打印log,监听resize事件等
npm install ez-vue-chart
yarn add ez-vue-chart
// main.js
import Vue from 'vue'
import App from './App.vue'
import lodash from 'lodash';
import echarts from 'echarts'
import EzChart from 'ez-chart'
import ezVueChart from 'ez-vue-chart'
Vue.use(ezVueChart)
new Vue({
el: '#app',
render: h => h(App)
})
// app.vue
<template>
<div id="app">
<ez-chart :data="data" :keyMap="['label', 'val', 'val2']" type="bar" register="click"></ez-chart>
</div>
</template>
<script>
export default {
name: 'app',
data () {
return {
data: [
{
label: 'test',
val: 111,
val2: 31,
},
{
label: 'test2',
val: 312,
val2: 142,
}
]
}
}
}
</script>
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| type | 选择渲染的图表类型 | string | bar/line/pie/funnel/scatter 以及customType | -- |
| keyMap | 传入的data中需要提取的值的key集合 | Arrary:string | -- | ['label', 'value'] |
| data | 原始数据 | array<object> | -- | -- |
| params | ezChart.getOption的params参数 | object | -- | {} |
| echartsInitOptions | echarts.init初始化时的参数 | object | -- | {} |
| registerTheme | 使用的图标主题 | string | -- | '' |
| register | 注册的事件 | string|array | -- | -- |
| resizeWaiting | resize事件触发防抖函数的等待时间 | number | -- | 500 |
| styles | 默认的图表样式只会拿到宽度和高度作为echarts.init的初始项,会被echartsInitOptions覆盖 | Object | -- | { height: '300px',width: 'auto'} |
| log | 是否打印日志 | Boolean | -- | false |
| 方法名 | 说明 | 参数 |
|---|---|---|
| renderChart | 渲染图表 | -- |
| 事件名称 | 说明 | 参数 |
|---|---|---|
| listener | 触发绑定的监听事件 | event 事件名称, params echarts返回的原始参数, data 原始数据 |
| 名称 | 说明 |
|---|---|
| -- | 自定义缺省页样式 |
externals = {
echarts: 'echarts',
'ez-chart': 'EzChart',
vue: 'Vue',
lodash: 'lodash',
}
FAQs
vue图表组件,结合ez-chart方便快捷的生成图表
The npm package ez-vue-chart receives a total of 4 weekly downloads. As such, ez-vue-chart popularity was classified as not popular.
We found that ez-vue-chart demonstrated a not healthy version release cadence and project activity because the last version was released 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
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.