data-for-change / anyway-newsflash-infographics

Development branch deployed automatically to website:
https://anyway-infographics-staging.web.app/
MIT License
12 stars 23 forks source link

Widget: Killed in accidents on a certain month compared to the same month in previous years #931

Open MichalOren opened 1 year ago

MichalOren commented 1 year ago

Name Killed in accidents on a certain month compared to the same month in previous years in JSON "name": "fatal_accident_yoy_same_month"

Title Count of killed in road accident on month X over the years כמות ההרוגים בתאונות בחודש הנוכחי בהשוואה לשנים קודמות

Visualization explanation Count of killed in accidents on month X over the years compered to the current. The widget works for the same amount of time as any other widget - That is, if you are working on 5 years, then it takes information from the last 5 years, from this information it filters all the events that were read by the current month (if it is now November, then from every year it will take the events that were read in November)

Visualization image

Find visualization based on our React library: https://recharts.org/en-US/examples/ComposedChartWithAxisLabels and link to sendbox https://codesandbox.io/s/composed-chart-with-axis-label-55s1s?file=/src/App.tsx:219-222

Expected display

image

Use case This infographic should be displayed when: When there are killed in accidents on month on the road section

Information : מספר הרוגים בתאונות דרכים בחודש הנוכחי בהשוואה לאותו חודש בשנים קודמות

MichalOren commented 1 year ago

Hi @galraij Kindly go over and see if U have feedback