Bar Chart with React

Rodion Chachura
Jan 2 · 5 min read
increaser-chart by Increaser.

Plan

Project Setup

$ npm install -g create-react-library
$ create-react-library increaser-charts
$ cd increaser-charts
$ npm install --save styled-components
...
external: ['styled-components'],
globals: { 'styled-components': 'styled' }
}
$ npm start
$ cd example
$ npm start

Specification

{
...
"typings": "./index.d.ts",
"files": ["dist", "index.d.ts"],
...
}
when typing properties

Demo Page

$ cd example
$ npm install --save @material-ui/core @material-ui/lib

Generating Mock Data

BarChart Layout

Bars

Labels

Scroller

Conclusion

$ npm publish --access-public
$ npm run deploy

Pomodoro by Increaser

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade