code4romania / rezultate-vot-api

Mozilla Public License 2.0
5 stars 9 forks source link

fix: Add default colors to Referendum results #165

Open danmana opened 2 years ago

danmana commented 2 years ago

What does it fix?

Closes code4romania/rezultate-vot-client#109 The backend was returning the default #808080 gray color for referendum results.

Added default colors to Referendum type results.
The colors used are the ones that are currently displayed in the ElectionResultsStackedBar (which uses pseudo-random colors #6540bf #40bf9b #97bf40) - see live page image

Also updated a bit the docs to include info about how to install and run locally.

How has it been tested?

Not tested yet because I don't have a database dump to use on localhost.