Alheimsins / bigfive-web

Website for taking personality tests
MIT License
213 stars 86 forks source link

Port charts to newest version of react-google-charts #80

Closed maccyber closed 6 years ago

maccyber commented 6 years ago

Port charts to the newest version of react-google-charts

Start by:

git clone https://github.com/Alheimsins/bigfive-web
cd bigfive-web
npm install

Create this file in the root-directory:

.env

DB_CONNECTION=hacktoberfest:hacktoberfest1@ds153659.mlab.com:53659/bigfive
DB_COLLECTION=test
URL=http://localhost:3000

And run npm run dev

npm un --save @alheimsins/react-google-charts
npm i --save react-google-charts

Change charts in: https://github.com/Alheimsins/bigfive-web/blob/master/components/Summary.js and https://github.com/Alheimsins/bigfive-web/blob/master/components/SummaryCompare.js

See that it scales on mobile and works.

divslingerx commented 6 years ago

I'd like to give this a shot