diff --git a/public/config.json b/public/config.json index ba90838..ae1402f 100644 --- a/public/config.json +++ b/public/config.json @@ -21,19 +21,19 @@ "fileName": "data.csv" } ], - "chartList":[{ + "chartList": [{ "fileName": "data.csv", "chartColumn": "status" }, { - "fileName": "data.csv", - "chartColumn": "age" - } + "fileName": "data.csv", + "chartColumn": "age" + } ], - "colorMaps" : { - "status" : { - "complicated":"red", - "single":"green" + "colorMaps": { + "status": { + "complicated": "red", + "single": "green" } } } diff --git a/src/ChartLoader.tsx b/src/ChartLoader.tsx index 31c4e26..9f5e3a8 100644 --- a/src/ChartLoader.tsx +++ b/src/ChartLoader.tsx @@ -6,7 +6,7 @@ export default class ChartLoader extends React.Component { public render() { const colorMaps = this.props.colorMaps; return ( - + {this.props.chartList.map((o: any, i: number) => { const colorMap = colorMaps[o.chartColumn]; return (