Skip to content

Commit 459504b

Browse files
jerairrestgor181
authored andcommitted
Rc 2.1.0 (#130)
* add react-storybook * split stories into isolated includes (Sections) * added some more examples for mixed, and mixed multi-line * Provide a fix for #114 by determining which series to add/remove/update by a dataset key as opposed to array index. The dataset key is determined via a keyProvider function which defaults to dataset.label * replace Array.includes with Array.indexOf for backwards compatibility reasons * Added support for inline plugins (see chartjs@2.5.0) and modified mixed data example to include an example plugin * missing ref in shouldComponentUpdate * added latest storybook * updated README * Use prop-type package instead of React.PropType In 15.5, instead of accessing PropTypes from the main React object, install the prop-types package and import them from there. https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes * Fix lint test * fixed tests and added a graph
1 parent f87495e commit 459504b

File tree

17 files changed

+9694
-145
lines changed

17 files changed

+9694
-145
lines changed

.storybook/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { configure } from '@kadira/storybook';
2+
3+
function loadStories() {
4+
require('../stories');
5+
}
6+
7+
configure(loadStories, module);

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ npm start
2828

2929
Then open [`localhost:8000`](http://localhost:8000) in a browser.
3030

31+
## Demo & Examples via React Storybook
32+
33+
We have to build the package, then you can run storybook.
34+
35+
```bash
36+
npm run build
37+
npm run storybook
38+
```
39+
40+
Then open [`localhost:6006`](http://localhost:6006) in a browser.
41+
3142

3243
## Installation via NPM
3344

0 commit comments

Comments
 (0)