npm install a4__This project is still in alpha. APIs might change heavily in the future.__
- __Demo__
1. git clone https://github.com/wuct/a4.git
2. cd a4
3. npm install
4. cd docsSrc && npm install && npm start
5. go to [http://localhost:3000]()
npm install a4
``JavaScript
import React from 'react'
import { BarChart, Brush, createLinearScale } from 'a4'
const xScale = createLinearScale({
domain: [1, 5],
range: [10, 190],
})
const yScale = createLinearScale({
domain: [1, 5],
range: [190, 0],
})
const data = [
{ x: 1, y: 1 },
{ x: 2, y: 2 },
{ x: 3, y: 3 },
{ x: 4, y: 4 },
{ x: 5, y: 5 },
]
const BarChartExample = () =>
export default BarChartExample
`
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)git commit -am 'Add some feature'
3. Commit your changes ()git push origin my-new-feature`)
4. Push to the branch (
5. Create new Pull Request