data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 242 forks source link

Widget: accidents up to a certain date compared to other years by age #1631

Open galraij opened 3 years ago

galraij commented 3 years ago

Name accidents up to a certain date compared to other years by age

Title Infographic name to be used in FE.

Visualization by age @galraij please update visualization when ready

Visualization explanation Explain visualization content.

Use case When this infographic should be displayed

SQL query Sql clause and usage guidance. In addition to query, detail which parameters should be modified when executing it and which output fields are language specific When creating the query and filtering CBS data - it's better to use the numeric values of the categorical fields (accident_severity = 1 is better than accident_severity_hebrew = 'תאונה קטלנית'). For code redeablity - one can create constants and dictionaries.

Additional context

atalyaalon commented 3 years ago

@MichalOren since we'll create an implementation of this graph implementation per segment/street - there is no need to create a redash new query - just to clarify in the text above differences between this Widget (which is per segment / street): https://github.com/hasadna/anyway/issues/1645 to the current one which includes the whole country

Also it's important to clarity that the years in which the data is filtered are determined by the FrontEnd (as in all Widgets)