Releases: VizArtJS/vizart-basic
Releases Β· VizArtJS/vizart-basic
v2.0.8
π· Features
- new color api
// use a new scheme
chart.color({scheme: ...})
// use a new type
chart.color({type:'categorical'})
// both type and scheme
chart.color({type: 'categorical', scheme[]})
- radar has
stack
,group
, andexpand
api
// expand to 100% layout
radar.expand();
// no stack layout
radar.group();
// standard stack layout
radar.stack();
- sort api
chart.sort(accessor, direction);
v2.0.7
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
API changes
v2 internally deprecates ES6 class inheritance and adopts object composition.
Do a global search and replace will seamlessly upgrade to v2. all chart names are in camelCase, no new
operator is needed anymore.
// v1
import { Bar } from 'vizart-basic';
const chart = new Bar(domId, options);
// v2
import { bar } from 'vizart-basic';
const chart = bar(domId, options);
chart names:
v1 | v2 |
---|---|
Bar | bar |
Area | area |
Line | line |
Pie | pie |
Row | row |
Scatter | scatter |
Stream | stream |
Corona | corona |
StackedBar | stackedBar |
StackedArea | stackedArea |
MultiLine | multiLine |
API Changes
//v1
transitionColor
//v2
color
New API
stackedArea
group()
transit to group layoutstack()
transit to stack layoutexpand()
transit to expand layout
stream
wiggle()
transit to wiggle layoutsilhouette()
transit to silhouette layoutdivergent()
transit to divergent layout
stackedBar
group()
transit to group layoutstack()
transit to stack layoutexpand()
transit to expand layout