Code Monkey home page Code Monkey logo

vizart's Introduction

vizart

It is recommended to use vizart components.

Usage: Components

  1. Install a vizart component:
npm install vizart-basic --save
  1. import and use
import 'vizart-basic/dist/vizart-basic.css';
import { bar } from 'vizart-basic';

const chart = barar(domId, opt)....

Usage: vizart

With this approach, all charts are available.

  1. Install VizArt in your project
npm install vizart --save
  1. import and use
import 'vizart/dist/vizart.css';
import { bar } from 'vizart';

const chart = bar(domId, opt)....

Three steps to use a chart

  1. initialize a chart with domId and declarative options
const opt = {
  ...
};
const chart = bar('#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
// 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
chart.options(opt);
chart.update();

Resources

Components

Production ready:

Credits

My work is based on/inspired by other people's works. You can find links and author names of originals works at each sub module's home page as well as at vizart's demo page.

Thanks to Mike Bostock, the creator of d3.js. I create vizart on top of d3 modules. I also study d3 examples extensively.

License

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

vizart's People

Contributors

bigfatdog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

daz2345 cule

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.