|
@@ -4,7 +4,7 @@ import './App.css';
|
|
|
import BarChart from 'chart-race-react';
|
|
|
|
|
|
|
|
|
-//const data = {"apple": "2", "banana": "5", "orange": "2", "yoghurt": "3", "pinguin": "1", "blub": "5"}
|
|
|
+//const data = {"apple": "2", "ELENA": "5", "orange": "2", "yoghurt": "3", "pinguin": "1", "blub": "5"}
|
|
|
const data = ['apple', 'banana', 'orange', 'yoghurt', 'pinguin', 'blub'].reduce((res, item) => ({...res, ...{[item]: Array(20).fill(0).map(_ => Math.floor(20 * Math.random()))}}), {});
|
|
|
|
|
|
const randomColor = () => {
|