Giter VIP home page Giter VIP logo

geoc-chart's Introduction

Gde

安装

npm

$ yarn add gde

clone

$ git clone https://github.com/geocompass/geoc-chart.git

$ cd geoc-chart/

$ npm run build

$ lib/gde.min.js

使用


<div id="gde-geoc_text"></div>

<div id="gde-geoc_multilinetext"></div>

<div id="gde-g2plot_pie"></div>

<div id="gde-mapbox"></div>
import Gde from 'gde';

Gde.accessToken = '';
new Gde('gde-geoc_text', '4c2d467e-fc82-4ca1-bc73-fec59242c330');
new Gde('gde-geoc_multilinetext', 'b8adc5bf-d86b-4810-86b3-f0792c369bea');
new Gde('gde-g2plot_pie', 'c0190da6-e803-48a8-9266-32f7e44a5690');
new Gde('gde-mapbox', '65eec7ab-64e7-4922-97cb-c9962233b967');

参数

属性 类型 必填 说明 示例
accessToken String 内部服务请求参数token 'xxx-xxx-xxx'
container String 图表渲染容器container 'gde-geoc_text'
chartId String 内部服务请求参数chartId '4c2d467e-fc82-4ca1-bc73-fec59242c330'

Tips

  • 服务权限accessToken
  • 通过服务/datavisual/dashbord_info请求图表chartId列表。
  • Packet size

测试

geoc-chart包中

$ npm run build

$ npm link

使用该包的项目中

$ npm link gde

数据文档

G2Plot 使用文档

G2Plot

Mapbox 使用文档

Mapbox

Geoc 使用文档

Geoc

许可证

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.