vizart-geo

2.0.2 • Public • Published

vizart-geo

Usage:

  1. Install
npm install vizart-geo --save
  1. ES6 Usage
import 'vizart-geo/dist/vizart-geo.css';
import { choropleth } from 'vizart-geo';

const map = choropleth(domId, opt)....

Three steps to use a chart

  1. initialize a chart with domId and declarative options
let opt = {
  ...
};
const chart = new Chord('#chart', opt)

You only need to provide essential options. Demo is a good place to check essential options for all charts. You may check up Documentation of each component for full option spec so as to control more chart behaviours.

  1. Render a chart with data
chart.render(data) // this should be called only once
  1. Change a chart on the fly (with options in a minimum)
// copy and update full options
const opt = chart.options();
opt.plots.opacityArea = o.4

// or in minimum
const opt = { plots: {opacityArea: 0.2 }};

// update options and redraw chart
chart.options(opt);
chart.update();

Development

  1. Clone repository
  2. Run commands
npm install         // install dependencies
npm run dev         // view demos in web browser at localhost:3005
npm run build       // build
npm run test        // run tests only
npm run test:cover  // run tests and view coverage report

API

License

This project is licensed under the MIT License - see the LICENSE file for details

Package Sidebar

Install

npm i vizart-geo

Weekly Downloads

15

Version

2.0.2

License

MIT

Unpacked Size

1.28 MB

Total Files

20

Last publish

Collaborators

  • bigfatdog