0.1.1 • Published 4 years ago

@dboxjs/bars v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Bar chart

Draws a bar chart using SVG figures

Bars.x()

Required Expects a column name to use as x axis

x('name'): Sets 'name' as column used

Info You should specify scale type in configuration object

var config {
  xAxis: {
    scale: 'ordinal'
  }
}

Bars.y()

Required Expects a column name to use as y axis

__y('value'): Sets 'value' as column used

Info You should specify scale type in configuration object

var config {
  yAxis: {
    scale: 'linear'
  }
}