File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -95,22 +95,23 @@ Statically hosted JSON or CSV files can be used as data sources via the addition
95
95
``` jsx
96
96
import { Tree , treeUtil } from ' react-d3-tree' ;
97
97
98
- const csvSource = ' https://raw.githubusercontent.com/bkrem/react-d3-tree/feature/add-csv-to-json-transform /examples/data/csv-example.csv' ;
98
+ const csvSource = ' https://raw.githubusercontent.com/bkrem/react-d3-tree/master/docs /examples/data/csv-example.csv' ;
99
99
100
100
constructor () {
101
101
super ();
102
102
103
103
this .state = {
104
104
data: undefined ,
105
105
};
106
-
107
- componentWillMount () {
108
- treeUtil .parseCSV (csvSource)
109
- .then ((data ) => {
110
- this .setState ({ data })
111
- })
112
- .catch ((err ) => console .error (err));
113
- }
106
+ }
107
+
108
+ componentWillMount () {
109
+ treeUtil .parseCSV (csvSource)
110
+ .then ((data ) => {
111
+ this .setState ({ data })
112
+ })
113
+ .catch ((err ) => console .error (err));
114
+ }
114
115
115
116
class MyComponent extends Component {
116
117
render () {
You can’t perform that action at this time.
0 commit comments