Skip to content

Commit f2812be

Browse files
author
Nick Ardecky
committed
docs: Update documenation for modules
- include module information in README - include module demo in /example
1 parent 2083107 commit f2812be

4 files changed

Lines changed: 1373 additions & 2340 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ You can either include the zingchart-react component to your project via UMD or
1919
import ZingChart from 'zingchart-react';
2020
```
2121

22-
or
22+
You must **EXPLICITLY IMPORT MODULE CHARTS**. The modules are
23+
wrapped as a closure an eval statement so there is **NO** default
24+
export objects. Just import them.
25+
26+
```js
27+
import ZingChart from 'zingchart-react';
28+
// EXPLICITLY IMPORT MODULE
29+
import 'zingchart-react/dist/modules/zingchart-depth.min.js';
30+
```
2331

2432
### UMD
2533

0 commit comments

Comments
 (0)