Another PlotlyJS visual this week – creating a split violin plot.
We’ll be comparing male and female dating preferences collected from speed dating events between 2002-2004.
EXTRA CREDIT – For those with a little more time on their hands, an extended workout challenge is included; conduct your own data analysis and create a data story to be told in the time it takes to speed date (4 minutes) utilising bookmarks for storyframing and the HTML Content visual to create a countdown timer.
|= ͡° ᆺ ͡°)=
\╭☞ \╭☞ AWESOME!
- Obtain the data and explanation of the data here: https://data.world/annavmontoya/speed-dating-experiment
- Model the data or obtain the pbix from here: Workout Wednesday 2022 Week 36 – Microsoft Power BI Community
- Import plotyJS visual from AppSource
- Place the iid, gender, attributes and ratings for the question “What do you look for in the opposite sex?”, in the field well. Ensure the waves 6-9 are filtered as these are rated differently or adjust calculations accordingly.
- Select the PloyJS visual, from the ellipis select edit visual
- Add a violin trace
- Add the attributes along the X Axis and the Ratings across the Y Axis
- Under transform, Split trace by gender
- Under trace styles, set female span mode hard, with positive visible sides
- Under trace styles, set male span mode hard, with negative visible sides
- Display outlier points and adjust point jitter, position, and opacity to suit
- Adjust the Bandwith (2)
- Display median lines
- Under Save/Load, save and close
ADVANCED — EXTRA CREDIT
- In a new measure create an animated HTML/SVG countdown timer of your own or re-style from the following template: https://kerrykolosko.com/portfolio/countdown-timer/
- Set the animations for 4 minutes
- Analyse the speed dating dataset and create your own visualisations
- As the count-down timer resets across pages, use bookmarks to navigate your story.
- Create a datastory that can be told within 4 minutes (the time it takes to speed date)
This challenge uses data from dataworld available here: https://data.world/annavmontoya/speed-dating-experiment
Or you can download the PBIX from the Data Stories Gallery : Workout Wednesday 2022 Week 36 – Microsoft Power BI Community
After you finish your workout, share on Twitter using the hashtags #WOW2022 and #PowerBI, and tag @JSBaucke, @MMarie, @shan_gsd, @KerryKolosko, and @NerdyWithData. Also make sure to fill out the Submission Tracker so that we can count you as a participant this week in order to track our participation throughout the year.
Please be sure to cite source before sharing.