robertszafa / moodportfolio

2 stars 1 forks source link

[Not an Issue] Radar Graph Example #55

Open DevGareth opened 5 years ago

DevGareth commented 5 years ago

I have added radar graph to the GraphPlotter.js. To use it:

const thedata = { labels: ['fear','anger','contempt','disgust','sadness','neutral','surprise','happiness'], datasets: [{ label: 'Emotion Probabilities', data: EMOTION PROBABILITIES HERE }] };

\


If you want to change colours or anything I recommend using the colours set in the Graph.js file.

Example showing how to pass colours or anything else to radar:

https://github.com/jerairrest/react-chartjs-2/blob/master/example/src/components/radar.js