diff --git a/public/config.json b/public/config.json index ae1402f..bb5f035 100644 --- a/public/config.json +++ b/public/config.json @@ -28,6 +28,15 @@ { "fileName": "data.csv", "chartColumn": "age" + }, { + "fileName": "data.csv", + "chartColumn": "status" + }, { + "fileName": "data.csv", + "chartColumn": "status" + }, { + "fileName": "data.csv", + "chartColumn": "status" } ], "colorMaps": { diff --git a/src/ChartLoader.tsx b/src/ChartLoader.tsx index 9f5e3a8..912f33c 100644 --- a/src/ChartLoader.tsx +++ b/src/ChartLoader.tsx @@ -6,11 +6,11 @@ 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 ( - + );