sutpc-charts-utils
安装
npm install sutpc-charts-utils
全量引入组件
import { createApp } from "vue";
import SutpcChartsUtils from 'sutpc-charts-utils'
import 'sutpc-charts-utils/dist/style.css'
SutpcChartsUtils.setBaseURL('https://www.baidu.com') // 设置api基础地址,不设置默认为当前域名根目录
createApp().use(SutpcChartsUtils).mount("#app");
// 在.vue文件去使用组件
<template>
<gantt-chart />
<network-chart />
<matrix />
<invest-chart />
<payment-chart />
<complete-rate-chart />
<base-info />
<env-pic />
</template>
在全局按需引入某个组件, 如矩阵图
import { createApp } from "vue";
import Matrix from 'sutpc-charts-utils/dist/matrix/index'
import 'sutpc-charts-utils/dist/matrix/style.css'
Matrix.setBaseURL('https://www.baidu.com') // 设置api基础地址,不设置默认为当前域名根目录
createApp().use(Matrix).mount("#app");
或者在某个组件内按需引入, 如about.vue
<template>
<div>
<div>这是about.vue</div>
<Matrix />
</div>
</template>
<script setup lang="ts">
import { Matrix, setBaseURL } from 'sutpc-charts-utils/dist/matrix/index'
import 'sutpc-charts-utils/dist/matrix/style.css'
setBaseURL('https://www.baidu.com') // 设置api基础地址,不设置默认为当前域名根目录
</script>
支付曲线、形象进度曲线需要额外设置字体,echarts浮窗需要
@font-face {
font-family: "DINCondensed-Bold";
src: url("sutpc-charts-utils/dist/fonts/DINCondensed-Bold.ttf");
font-weight: normal;
font-style: normal;
}
Related Packages
@prefecthq/vue-charts
This library is the Vue and Typescript charts component library. Install
73,477
uplot-vue
Vue.js wrapper for uPlot that allows you to work with charts declaratively insid...
29,347
135
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.10.5 | ^3.3.4 | MIT | |
| 0.10.4 | ^3.3.4 | MIT | |
| 0.10.3 | ^3.2.39 | MIT | |
| 0.10.2 | ^3.2.39 | MIT | |
| 0.10.1 | ^3.2.39 | MIT | |
| 0.10.0 | ^3.2.39 | MIT | |
| 0.9.3 | ^3.2.39 | MIT | |
| 0.9.2 | ^3.2.39 | MIT | |
| 0.9.1 | ^3.2.39 | MIT | |
| 0.9.0 | ^3.2.39 | MIT | |
| 0.8.2 | ^3.2.39 | MIT | |
| 0.8.1 | ^3.2.39 | MIT | |
| 0.8.0 | ^3.2.39 | MIT | |
| 0.7.4 | ^3.2.39 | MIT | |
| 0.7.3 | ^3.2.39 | MIT | |
| 0.7.2 | ^3.2.39 | MIT | |
| 0.7.1 | ^3.2.39 | MIT | |
| 0.7.0 | ^3.2.39 | MIT | |
| 0.6.14 | ^3.2.39 | MIT | |
| 0.6.13 | ^3.2.39 | MIT | |
| 0.6.12 | ^3.2.39 | MIT | |
| 0.6.11 | ^3.2.39 | MIT | |
| 0.6.10 | ^3.2.39 | MIT | |
| 0.6.9 | ^3.2.39 | MIT | |
| 0.6.8 | ^3.2.39 | MIT | |
| 0.6.7 | ^3.2.39 | MIT | |
| 0.6.6 | ^3.2.39 | MIT | |
| 0.6.5 | ^3.2.39 | MIT | |
| 0.6.4 | ^3.2.39 | MIT | |
| 0.6.3 | ^3.2.39 | MIT |
Showing the latest 30 of 56. See every release on npm