Skip to content

Need average statewise data for a particular feature for heat maps. #5

Description

@Utkichaps

We currently have 4 features in the frontend - Health Behaviours, Clinical Care, Socio Economic factors and Quality of life. Each of these have their own subfeatures that have data in the excel sheet.

Now what I want is, given the state, county, feature, I want an output of all the counties in the state and the value of each of their features SCALED between 1 and 10. I also want a flag that says whether a higher value is good or bad.
For example, if I choose California and Socio Economic Factors, I want an output in a format similar to this:

JSON response:
[
California : [
'Alamada': ['Violent crime rate': 6, 'Injury Death Rate': 8]
'Alpine': ['Violent crime rate': 7, 'Injury Death Rate': 2]
'Amador': ['Violent crime rate': 9, 'Injury Death Rate': 4]
.....
],
'HigherGood': False //This denotes that higher value means bad
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions