opendataby / city-dashboard

City dashboard for Minsk using open datasets
https://city.opendata.by
MIT License
10 stars 4 forks source link

implement full frontend json #9

Closed davojta closed 7 years ago

davojta commented 8 years ago

need to implement https://github.com/opendataby/city-dashboard/blob/master/data/test.json in form of following structure

[
  {
    city: "Minsk",
    params: [
      {
        "parameter": "pollution",
        "average": "200",
        "value": "100",
        "isOk": true
      },
      {
        "parameter": "accidents",
        "average": "120",
        "value": "80",
        "isOk": false
      },
      {
        "parameter": "amenity",
        "average": "50",
        "value": "10",
        "isOk": true
      },
      {
        "parameter": "forest",
        "average": "1000",
        "value": "678",
        "isOk": true
      }
    ]
  }
]

base structure - https://github.com/opendataby/city-dashboard/blob/master/data/frontend.json

davojta commented 7 years ago

реализован новый джейсон, добавлено на страницу, другие города пока не добавляем