2.1.8 • Published 10 months ago

shu-c-gdatlas v2.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

shuCGDChart

这是一个以 d3、d3-cloud、echarts和echarts-liquidfill 为基础的高阶封装可视化图表组件,封装了一些需要自定义扩展的可视化组件。

安装和快速上手

npm 安装

安装依赖包

  • shu-c-gdchart
npm i shu-c-gdchart --save
  • echarts
npm i echarts@4.9.0 --save
  • echarts-liquidfill(水球图依赖),echarts-liquidfill 如果有需要用到水球图,则需要安装
npm i echarts-liquidfill@1.1.1 --save
  • lodash (帮助函数插件)

lodash如果使用的是脚手架那么可能脚手架已经帮你安装了(比如:Vue CLI)。

npm i lodash --save

CDN

cdn 服务网络js文件暂未发布,如果需要使用请至目录:

node_modules
└──shu-c-gdchart
     └──lib
          └──iife
              └──shu-c-gdchart.js

shu-c-gdchart.js拷贝到你项目中的 static 目录内,然后使用:

<script src="/static/shu-c-gdchart.js"></script>

main.js

  • webpack中使用,echarts、d3和d3-cloud 请使用 script 引入到项目的html页面中

  • echarts-liquidfill 请点击下载,放入项目中并以script标签引入到项目的html页面中

echarts-liquidfill 请点击下载

import Vue from 'vue';
Vue.use(window.shuCGDChart.install);

new Vue({
  render: h => h(App)
}).$mount('#app')

快速上手

webpack

在 main.js 中写入以下内容:

import Vue from 'vue';
import shuCGdChart from 'shu-c-gdchart';

Vue.use(shuCGdChart);

new Vue({
  render: h => h(App)
}).$mount('#app')

Browsers support

Modern browsers and IE10.

IE / EdgeFirefoxChromeSafariOpera
IE10, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

last 2 versions 每个浏览器最新的两个版本

Contributors

This project exists thanks to all the people who contribute.

AnnBeiHuang

1.0.1

10 months ago

2.1.2

10 months ago

2.0.3

10 months ago

2.1.1

10 months ago

2.0.2

10 months ago

2.1.4

10 months ago

2.0.5

10 months ago

2.1.3

10 months ago

2.0.4

10 months ago

2.1.6

10 months ago

2.0.7

10 months ago

2.1.5

10 months ago

2.0.6

10 months ago

2.1.8

10 months ago

2.1.7

10 months ago

2.0.8

10 months ago

2.1.0

10 months ago

2.0.1

10 months ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago