reddit-india / indianelectionmeter.github.io

Website dedicated to track promises made in Indian Elections, as suggested on reddit.com/r/india
http://indianelectionmeter.in
MIT License
40 stars 19 forks source link

Color coded, category wise promises #22

Open okpatil4u opened 8 years ago

greyhound291 commented 8 years ago

https://docs.google.com/spreadsheets/d/1yK1KDcJsqINRueoX2Zkubmx2dheIlt1LogU6xjwwpTY/edit#gid=1987903024

Colour codes to categories have been allotted but these are by no means final colours OR categories. This is just to get the ball rolling.

Since the categories are crucial to the other docs, I have locked the sheet to prevent changes without discussions.

Please DM me your suggestions or put them here on this issue, for changes to be made to colours/categories. Thanks! :)

bogas04 commented 8 years ago

I would recommend adding these colors to data.json itself so that the frontend doesn't hard-code anything. Something like this would be sensible from redundancy point of view.

{
  "categories": {
     "agriculture": "#123456", ...,
   },
   "promises": [
      { "number": 12, ..., "category": "agriculture" }
    ]
}
satyarth commented 8 years ago

@bogas04 great suggestion.