Skip to content

Tidy natural_disasters.py example#2643

Merged
mattijn merged 9 commits intovega:masterfrom
palewire:patch-18
Jul 4, 2022
Merged

Tidy natural_disasters.py example#2643
mattijn merged 9 commits intovega:masterfrom
palewire:patch-18

Conversation

@palewire
Copy link
Contributor

@palewire palewire commented Jul 3, 2022

Fixes #2627

Before:
176780327-c5f2ee5d-69e8-46fe-8bb2-89e7e3843e7a

After:
visualization (1)

Copy link
Contributor

@mattijn mattijn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its great you are digging through all the examples!
If we going to improve the enhancement of this chart, then maybe we can improve it even bit more (its a chart in the case-study section anyways).

See my in-line suggestions that you could accept to your liking.

If all changes are accepted it should resolve into the following:
image
I changed the following:

  • Defined the x-axis as temporal, had to start the domain from 1899 to 2018 to get a tick at 1900 and a tooltip for 2017 values.
  • Changed the format of legend and tooltip values.
  • Provided a title in combination with a smaller sized subtitle.
  • Included an offset on the y-axis labels so they won't overlap with the circles.

palewire and others added 7 commits July 3, 2022 16:29
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
Co-authored-by: Mattijn van Hoek <mattijn@gmail.com>
@palewire
Copy link
Contributor Author

palewire commented Jul 3, 2022

Sure. I trust your judgement. I accepted all your proposals.

@mattijn mattijn merged commit cea5636 into vega:master Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x-axis tick labels in Natural Disasters case study need clean up

2 participants