Skip to content
/ chart Public

πŸ“Š JavaScript charting with @chartjs ⇆ chart ⇆ [ Vue + React ] ⇆ 0devco

License

Notifications You must be signed in to change notification settings

0devco/chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

install

# npm
npm -i @0devco/chart
# yarn
yarn add @0devco/chart

implementation

<canvas id="barChart" width="300" height="300"></canvas>
/* import @0devco/chart */
import chart from '@0devco/chart'
/* chart component */
let barChart = {
  type:'bar',
  id: 'barChart',
  multiple: 1,
  labels:['one','two','three'],
  label:[['one step']],
  data:[[54,13,15]],
  bgColor:[['red','green','blue']],
  bdrColor:[['black','black','black']],
  bdrWidth:[6]
}
/* call function */
chart().setup(barChart )

doc

courtesy