vizart-basic v2.1.3
vizart-basic
- Demo quick reference with source code
- Documentation Full option spec
Usage:
- Install
npm install vizart-basic --save
- ES6 Usage
import 'vizart-basic/dist/vizart-basic.css';
import { bar } from 'vizart-basic';
const chart = bar(_domId, options)....
Three steps to use a chart
- initialize a chart with domId and declarative options
const opt = {
...
};
const chart = 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.
- Render a chart with data
chart.render(data) // this should be called only once
- 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
- Clone repository
- 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
Credits
My work is based on or inspired by other people's works
- Corona is modified from Nadieh Bremer's A redsign of radar chart
- Rose is based on Athan kgryte's Nightingale's Rose
- Row chart is based on Nadieh Bremer's Brushable & interactive bar chart in d3.js
License
This project is licensed under the MIT License - see the LICENSE file for details
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago