New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

v3-charts

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v3-charts

> 基于 Vue 封装的 Echarts5 图表组件

latest
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

v-charts

基于 Vue 封装的 Echarts5 图表组件

特性

  • 🔑 美观的默认样式
  • 💡 支持 vue2 和 vue3
  • ⚡️ 响应式改变尺寸
  • 📦 封装了导出表格和图片,设置单位等一些常用功能

部署

使用内网源:npm set registry http://npm.vivo.com.cn/

  • 修改版本 (TODO 自动化)
  • yarn build
  • npm publish

Props

参数说明类型默认值
typeseries.typestringline
datadataSet 暂时支持一种格式ChartData
options传给 echart.setOptionObject{}
loading加载状态Booleanfalse
unit单位String''
limit最大数量,饼图,折线图等生效Number0
markLine标记[{ yAxis: 4000, name: '标准线' }][]
sort是否对数据排序 (只对 bar,pie 生效)Booleanfalse

Events

事件说明参数返回值
resize重置尺寸,同 echarts.resize
export interface ChartData<T = any> {
  columns: string[];
  rows: T[];
}

Keywords

vue3

FAQs

Package last updated on 15 Nov 2021

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