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

[Bug]: Numbers on stacked bar are misleading #1050

Closed MichalOren closed 5 months ago

MichalOren commented 8 months ago

The bug Relevant widgets are: -injured_count_by_accident_year -accident_count_by_accident_year

The problem is: for example, in the casualty graph, you can see the numbers of lightly injured and usually you don't see the numbers of those seriously injured or killed. All data is displayed only by hovering with the mouse. One can mistakenly think that the number of lightly wounded is the total number of casualties

image

To Reproduce https://anyway-infographics-staging.web.app/newsflash/185166

New expected behavior Display graph grid in the background

Screenshots image

https://recharts.org/en-US/examples/StackedBarChart

Additional context hopefully we want to keep current numbers. not sure U are welcome to consult product team

atalyaalon commented 6 months ago

@SejoB reopening, see discussion in attached pr

atalyaalon commented 6 months ago

@SejoB Is there an option to add horizontal grid (not dashed but full line) just like this image?

image

SejoB commented 6 months ago

@atalyaalon Just added a horizontal tick lines. PR is opened. If need some styling on the lines, let me know image