Ant Pulley | Blog ../index.html Learnings on Data Visualisation and Tableau Mon, 27 May 2024 19:59:20 +0000 en-US hourly 1 ../../s0.wp.com/i/webclip.png Ant Pulley | Blog ../index.html 32 32 181416176 Reflections on #Data24 – My first Tableau Conference! ../2024/05/13/reflections-on-data24-my-first-tableau-conference/index.html ../2024/05/13/reflections-on-data24-my-first-tableau-conference/index.html#respond Mon, 13 May 2024 20:46:48 +0000 ../index.html It’s been two weeks since I attended my first Tableau conference, and what an incredible experience it was! I’ve had some time to reflect on the event, and I wanted to get my thoughts down on the page before I forget too much.

Me at the Tableau Conference!

I wasn’t sure if I would ever make it to an in-person one, so I am very grateful to Lloyds Banking Group for sending me over to experience it, as I would say overall it was pretty much everything I hoped and expected it to be!

I was very excited about going from the moment I found out I could, but I also had some nervousness about it.

I (like many) am a very strong introvert, and I knew the conference was going to be a full-on few days, particularly when you throw in some pre-game and community leader events. I’m also deaf in one ear, and when in large environments I often worry that I am missing things or unintentionally ignoring people! These combine into not being a natural networker, and more inclined to speak one-on-one with people I know more – so knowing I was heading into a large community of people was quite daunting.

However, I needn’t have worried too much about this, as from before I even took off on the flight I was meeting people at the airport – thanks to Donna Coles for reaching out so we could meet up in person beforehand (along with Sam Parsons and the Biztory crew!). And this basically continued the whole way through – more people on the plane, and then more again when in San Diego. I found I recognised people, or they recognised me, or they just recognised my Data shirt and said ‘Hi’. Overall it was a very welcoming experience.

I will also thank Diego Parker, my Lloyds travelling companion, as in the lead up to the conference he gave me some good tips on how to get prepared. Probably the best one was to fly on Saturday and not Sunday to get enough time to recover for the conference start on Monday – and I am very glad I did that!

Now to go through what I actually got up to while I was there!

Day 0 – Pregame

The conference didn’t start until Monday, but there was a lot going on within the community on Sunday. I decided to use Sunday morning, and my jet-lagged ability to get up early, to get the lay of the land and see where the convention center was and what else was around. It was a beautiful day in San Diego, and I regretted not having more shorts! But I had a wander round the bay area to take some pictures, and then have a quick chat with my Wife to brag about the weather!

Me at Embarcadero Marina Park – the white building in the background is where Tuesday’s ‘Data Night Out’ was held – The Rady Shell

Luckily I had access to various WhatsApp and Twitter chats where I could see what other community members were planning on doing, so my plan was to go with the flow and join up with people when I could.

After my walk, I arranged to meet for coffee with Tableau Visionary Annabelle Rincon, whom I had not met in person before and it was a pleasure to catch up with her.

I didn’t take a picture on Sunday, but this is from later on in the week – still with coffee!

Following this I went for a very good lunch at the marina with Alex Waleczec, Brian Graves and Will Sutton.

After lunch the community events really kicked off as we headed to the San Diego TUG hosted ‘Data +Tacos’ event at the ‘You and Yours Distilling Co.’ – and it was here I was starting to see a lot of familiar faces I’ve never met in person before. There were so many people to try to catch up with, and I didn’t manage to catch them all. But this was such an amazing event to start the week and get that community feeling going – thanks to Luigi Cicciari and the team for putting this on. You know it is going to be a good week when Ken and Kevin Flerlage rock up in a taxi and then give you a big hug as soon as they see you!!

The ‘Data + Women’ event was later in the evening, and another great networking event at the ‘San Diego Wine & Culinary Center’. Hosted by Interworks, and thanks to Annabelle for getting me in at the last minute! It was amazing to meet so many more familiar faces in person, and meet some new ones as well! As a bonus, ‘Be Data Lit’ (https://www.bedatalit.com/) offered free headshots for all attendees – so I finally have a professional shot for my profile pics (if you ignore the palm tree t-shirt…).

Day 1

And so we make it to day 1!

Conference Entrance

I was pre-warned that there was a large queue for the event by 7am (when it opened for breakfast) – so I had ‘first’ breakfast before heading in. The queues had died down by the time I got there, so I got a second breakfast and headed to the Data Village where all the community stands and theatres were.

I was told there were up to 9,000 people at the conference, but at no point did it feel too busy as the convention center is a big space. Despite the number of people there, I was still frequently bumping into familiar faces. I went to the community desk first to say hello and pick up my ‘Ambassador’ badge before heading over to the ‘First Timers’ networking event, which was a great place to start for me to speak to people who were also on their first conference.

I attended several sessions throughout the day, all of which I thoroughly enjoyed, and also spent some time looking around the partner stands, having frequent coffee trips and ad-hoc conversations. I also got my pic snapped at the Data+Movies stand, as I was wearing the appropriate t-shirt!

A pic at the ‘Data + Movies’ stand with my participation t-shirt on

I particularly enjoyed Doc Kevin Lee Elder and Ginny Moench’s session on Gamifying Tableau – something I love doing myself. I even got a new pair of socks from it – thanks Doc!

My new Mario Socks!

I also found Yamil Medina’s session on AI Powered Cheat Sheets for Tableau very interesting and can see this being implemented at work.

I had the pleasure of co-hosting the Financial Services meetup with Diego Parker, Dzifa Amexo and Ruy Aguilar. Like the ‘First Timers’ meetup, the idea was to have time and space for anyone in the Financial Services industry to get together and talk.

Diego and I at the Financial Services Meetup

At one point I spotted Tableau Visionary Kevin Wee and went to introduce myself only to be pulled with him into an ad-hoc presentation on the ‘Data + Movies’ initiative in a small stand in the Data Village. Here we both spoke about our experience of the initiative with a brief overview of our vizzes – plus I got a tableau Baseball Cap out of it!

Me with my Cap in the UK. Plus some sun I brought back from San Diego with me!

The conference finished at 5pm, but for the community leaders (including myself as an Ambassador) we got to head to an event hosted by Tableau at the Mingei International Museum in Balboa Park. Another fantastic time to network and in a really cool setting as we could wander around the museum as well. Although I did feel like I was being chased by the Mariachi Band at some points!

Day 2

Today was Keynote day, so there was a fair amount of time to assign to that, but I also got to see some other really cool talks.

I watched Lisa Trescott (Visionary and previous Iron Viz winner) talking about speeding up your viz creation, with loads of useful tips and tricks to save you time. Definitely something I will be sharing with my colleagues at work.

I also managed to get a photo op with Ken and Kevin Flerlage, which any good community member needs in their photo album!

I caught a session on Supercharging you Tableau with Google Big Query from Meghan Reichert and Supriya Janjanam which had some very interesting use cases. Plus I was able to see Ghafar Shah talk about making your Datviz Portfolio stand out – just like his!!

Ghafar Shah nailing his talk

Will Sutton was recording short videos on various subjects throughout the conference, and I managed to get on one to talk about the Tableau Public User Group that I co-lead. You can check out that video here:

A short video explaining the Tableau Public User Group

The Keynote happened mid-morning, and as an ambassador, we had the luxury of reserved seating so we didn’t have to worry about queueing!

I enjoyed the Keynote and I like the fact Ryan Aytay kicked off speaking about Tableau Public and some of the cool visualisations from it. There was also (as expected) a lot of talk about AI and how this will change and shape the way things look going forward. I think it is fair to say that the part that got the most excitement was Devs on Stage at the end. This is where four developers from Tableau got to show off all the cool new features that will be coming across the Tableau products – and there were some really big ones. You can find the summary of these at the link below, but my favourites would be Viz Extensions, Tableau Public Local save (wow!), Microsoft Teams integrations and Custom Themes:

https://www.tableau.com/blog/product-innovations-tableau-conference-2024

Iron Viz happened later in the day, and that was quite an experience! Having previously watched this online only, the vibe in the room certainly immerses you in it. It is such a positive feeling as you really want all three finalists to do well. You can watch this back on Salesforce Plus, and marvel at how much can be done in 20 minutes!

Congratulations to Chris Westlake for the win, but also to Jessica Moon and Pata Gogová as it is quite a thing to go through!!

With the IronViz energy bubbling, it was time for Data Night Out – this was an event for everyone at the conference and was hosted at the Rady Shell behind the Convention Center (as per my first picture). I was a little nervous about this, as I had heard previous years had been very loud and a bit hard to find places to speak to people. But actually, I really enjoyed it, it was an outdoor venue with plenty of places to go and get food and drink, and more importantly – great company!

I got to speak to a lot of amazing people, including several previous Iron Viz winners – a special shout out to Sam Batchelor for managing to capture an ever-extending picture of the winners!

Day 3

The final day definitely had a slower pace about it. There were still lots of great sessions going on, but it felt a little bit quieter. The previous days had been pretty full on so for me I was taking it quite slowly on this day!

I did get off to a great start though, as I was able to get into the second showing of the Flerlage twins ‘Doing Cool Stuff in Tableau’ – which are always packed! It didn’t disappoint and I can see how their sessions are always a sell-out. Luckily this is one of the sessions on Salesforce Plus (along with many others) so no-one has to miss out!

And then before heading to the #Vizzies awards, I was able to get a quick selfie with the Iron Viz winner himself – Chris Westlake:

Iron Viz winner Chris Westlake still managing to smile after probably 100s of selfies

I was really looking forward to the #Vizzies awards session – run by Matt Fancis and Emily Kund, and in its 9th year – these are awards nominated for by the Tableau Community. I have been lucky enough to win one for the last two years, and while I wasn’t expecting to this year, I really wanted to feel the energy in the room for the awards.

As it happened, I did win again! I won the ‘I didn’t know Tableau could do that?’ award for the third time, and was able to experience picking it up in person – which was amazing!

Pamela captured this excellent High Five gif just after I collected the trophy – thank you!

As a double surprise, the Tableau Public User Group I co-lead was also selected as joint winner of the ‘TUG of the Year’ along with the Newbies User Group!

Vizzie Trophies with Preethi Lodha – one of the other co-leads of the Public TUG – check out the badge collections!

It was so much fun to cheer on all the other Vizzie winners – in particular Shreya Arya who won ‘Best Designer’ as she is also currently working at Lloyds with myself and Diego. She wasn’t there in person, but hopefully already has her trophy!

Check out this blog if you want to learn more about them and see all the other well-deserved winners:

https://www.tableau.com/blog/vizzies-tableau-conference-2024

Most of the talks on the last day finished around 3 pm, so it closed off earlier than the other days. This gave me and Diego some time to catch up and record a bit of a wrap-up video to send back to the UK Lloyds colleagues.

I was in bed pretty early this night after three full-on, but awesome days!

Day 4

My last day in San Diego was pretty planless other than to try and pick up some gifts for my family! I ended up running into quite a few people in the morning, including Sarah Bartlett who recommended going to Seaport Village on the harbour as there was a load of shops down there.

I’m glad I did, as on the way down I bumped into Iron Viz finalist Jessica Moon and her husband Rick who were also heading that way, and ended up having lunch with them before I headed back to the airport – what luck!

Jessica Moon and her husband Rick (and me!)

And then home – to sleep!!

Final Reflections

What a week! I thoroughly enjoyed it and was absolutely shattered, but would not hesitate to do it again! I was stunned at how many people I connected with who I have known for years online but never met in person – too many people to be able to mention in this blog (I’d like to call out everyone, but then I’d be sure to miss people!).

There were so many interesting sessions to choose from (sometimes too many!) and a really great vibe around the venue. I loved the Data Village and the informalness of that area – it was the go-to place to find someone to chat with as there was always a familiar face there.

San Diego was a lovely place to host it as well, and the convention center is in a fantastic location – so I think a lot of people were pleased it is going to be back there next year!

Well, that was a lot of writing! But I will end it there, and with one of my favourite pics from one of the Tableau photo booths in the Data Village.

Ant.

]]>
../2024/05/13/reflections-on-data24-my-first-tableau-conference/feed/index.html 0 2713
Magnifying Ants ../2024/03/21/magnifying-ants/index.html ../2024/03/21/magnifying-ants/index.html#respond Thu, 21 Mar 2024 22:40:10 +0000 ../index.html Hi All. This blog post is going to talk about how I built my recent ‘Consult Consult_Ant on Ant’s’ viz, as well as where the idea came from:

The Idea

So the idea has been around for a year or so, and took a while to come to fruition! In my list of random ideas, I had put ‘Consult Consult_Ant on Ants’ down as a one-liner with no real concept of what it was going to look like. Then in June 2023 I spoke at the London TUG and shared a few of my random ideas, at which point CJ Mayes suggested we vote on one for me to do next – and surprise surprise this one came out first!

So I had to make it a priority to try and finish, but I still couldn’t get a solid idea of what to do in my head, so it just stayed in the back of my mind for many months. Then as I have been co-leading the Tableau Public User Group, I have been seeing loads of really creative vizzes and ideas, and I think that kick-started my creative ideas again!

After that, I realized I had something else on my ideas list that I could do at the same time That idea was simply ‘Magnifying Glass’. I believe the original intention behind this was to somehow build a magnifying glass in a viz for zooming in to certain elements. And hence this viz was born!

I loved the idea of getting the feeling of searching for the ants and animating it so that it appeared that the Ants increased in size under the magnifying glass. It didn’t end up how it was initially in my mind – I had thought of scattering the ants around and trying to make a moving magnifying glass, but I decided to keep it simple.

For the lower part of the viz, I was keen to just have some simple information around each of the Ant types; so as well as trying out a fun viz type, I’m also providing some interesting information!

The Data

My data file was very small and looked like this:

It has an AntID column as an ID for the ant type. X and Y coordinates for positioning of the marks. A ‘Name’ for the ant type. The Min/Max size of the particular ant and the max colony size for the ant. All the ant-based data came from https://antark.net/.

The Viz – Top Half

I’m going to split this build into two, starting with the main event which is the top half. Essentially this is built with a lot of layering in Tableau to get the desired effect. To give you a rough idea to start, here is what the layers were:

Small Ants

The base sheet contained the Ant Images, and the position of each mark was determined by a parameter and a calculation.

Ant ID Parameter:

This parameter could be the Ant IDs from 1 to 6 which relate to the data, or 0, which would denote the ‘Starting position’ of the viz – i.e. when the ‘Find an Ant!’ message is displayed.

UpdateX

This image shows part of the UpdateX calculation – it is basically a manual job of assigning where I wanted each ant to appear in a row, depending on which ant is selected. And I wanted this to feel like you are ‘Moving’ along the row as you find the ants, so they all gradually move to each side.

So as the parameter changes (which is triggered from the last layer), the ants move along:

In terms of the images – these were built in Midjourney, an AI Image generator. And I fed it very simple prompts along the lines of:

/imagine a cartoon style army ant transparent background –no shadow no wings

This gave me a decent enough image to work with. For info the ‘–‘ in the prompt tells Midjourney what elements you don’t want to see.

The only different one was the cartoon image of me. For this I uploaded a real picture of me into midjourney, and asked it the following (subbing my image URL in the text below):

/imagine imageURL line drawing cartoon character, flat isolated background

It did take a bit of time to get the right prompt, as I got some pretty ‘interesting’ results before this:

I then put all of these images into Figma, reduced their size, and used a ‘remove background’ plugin that meant I got a transparent background (rather than a white square).

I added these to my Tableau shapes directory and set these as the shape on the viz.

Big Ants

This worksheet was designed to only show the Big ant that has been chosen. For this one I used the X and Y coordinates from the data file, and then made use of Dynamic Axis Ranges to update what portion of the view you see at each change of the Ant ID parameter.

I made two parameters, pXMax and pXMin that would control this:

My default values for these were 3.4 for min and 3.6 for max which would show a blank space (room for the instruction layer) in the middle of the 6 ants. This is how they look assigned to the axis:

These parameters get updated from the final transparent layer, and give the effect of the big ant appearing into view. Also this worksheet has a background colour the same green as the background of the main dashboard – the reason for this is we want to hide what is going on underneath (i.e. hiding the small ants from view as they pass under the magnifying glass).

Blank Green Square

This was a bit of a funny one to cover a quirk of publishing in Tableau Public. Basically what seems to happen with Dynamic Axis Ranges, is that when you publish on public, and you update the axes from the default position, you get a little ‘home’ button appear in the top left of the worksheet. It doesn’t happen on desktop and I definitely didn’t want this to be visible, so for a quick way to hide it, I just positioned a green ‘Blank’ object over the offending area.

Find and Ant! Image

The next layer was my ‘Find an Ant!’ text. I built this as an image in Figma (so I can keep the consistent font from my dashboard title) and placed it as the next layer. I then used Dynamic Zone Vizzibility (DZV) to only show this when the Ant ID Parameter was 0, using this calculation:

ShowText

DZV only works with a parameter or a calculation that returns a Boolean (True or False). Also if you are using a calculation, it needs to be viz independent – which means it must not change value based on what fields are in the viz. So creating a calculation from a parameter works well for this.

Magnifying Glass Image

The next layer was my magnifying glass image, which needed to be placed on top of the ‘Big’ ants sheet to appear like you are looking through it. I built this icon in Figma and it looks like this:

It was built very simply with circles and rectangles, but there are a few things to notice. One is the blurred inner ring which is designed to give it more of a magnifying glass appearance. Another is the inner ‘white’ area, which is actually transparent so you can see through it in the viz. And finally there is a green box around the outside of the magnifying glass.

This green box is the most important thing as it serves the purpose of hiding any parts of the ‘Big’ ant images that are animating underneath it. This is a result of having a circular magnifying glass with a square worksheet under it. Without this, you would see (particularly for the cartoon of me) parts of the image appearing outside of the magnifying glass, which ruins the aesthetic!

Transparent ‘Small Ants’ worksheet

And finally, we have the ‘Control’ worksheet, which is a transparent layer containing all the calculations required to drive the animations. This needs to be transparent and on top due to all the layering required to get the effect underneath.

The sheet itself is an exact replica of the ‘Small Ants’ sheet, but using a transparent shape instead and also including a few extra calcs used to drive the parameter changes:

xMaxUpdate

xMinUpdate

These two fields will update the parameters for the Dynamic Axis in the ‘Big’ ants worksheet, and the ‘AntID’ field will be used to update the main parameter which drives the ‘Small’ ants sheet and other DZV elements.

On the dashboard page there are three parameter actions that control this. The xMin and xMax look like this:

And the AntID one:

If you are looking at my workbook you will also notice I am using the ‘True’/’False’ filtering trick to deselect the marks as the user selects them. In this case I didn’t need to do it, as I am hiding the ‘Selected’ small ant under other layers, so this is actually redundant (just habit!!).

And this is how the top part of the viz was done! Lots of layering, hiding and trickery to try and get the desired effect – but I am happy!

You will be pleased to hear the bottom half was much simpler…..

The Viz – Bottom Half

This section was much simpler, so I won’t go into too much detail. But the crux of it is this:

6 Images which have the ant name and location, all built in figma and switched in and out using DZV. As an example, here is one of the calculations for this:

6 Text boxes that have the description in, also all controlled by DZV as above,

Two white background Blank objects to separate out the elements.

Two dot plots showing the Max Ant Size and Max Colony size. For the Max Ant size chart, as I am significantly bigger than a normal Ant, I actually filtered my value out for all ant selections apart from my own as otherwise you can’t see anything. Here is the calculation I used as a filter:

I also used the RANDOM() function to create a jittered effect for the dots, rather than just having them in one line and getting more in the way of each other:

One show/hide container button which shows up the information on the midjourney images.

One overall container for this section which is controlled by DZV again, and will hide everything when the Ant ID Parameter is set to 0 (i.e. the start state of the viz). This works with the ‘opposite’ calculation to the ShowText one from earlier:

ShowCharts

And that is pretty much done!

A note on Animations

I thought it worth having a brief note on animations as they can be a bit of a black box in Tableau in terms of when they will stop working, particularly when using custom shapes and images. I found very quickly that if my images were too large, then the animations stopped working, so I used figma to adjust sizes until I got to one that worked well.

Interestingly, Tableau Desktop on my Laptop seemed to give up on animations before Tableau Public did – so I had to do a lot of the work by testing on Tableau Public as the animations were running much smoother there. In hindsight, once I noticed this I should have just switched to web edit and carried on there! Lesson learned!

Finish

And there we are! I hope you found that interesting, and maybe even useful! Feel free to download the workbook and have a play, or drop me a message if you have any questions!

Thanks,

Ant.

]]>
../2024/03/21/magnifying-ants/feed/index.html 0 2532
Page Syncing with Rudolph ../2023/12/21/page-syncing-with-rudolph/index.html ../2023/12/21/page-syncing-with-rudolph/index.html#respond Thu, 21 Dec 2023 17:06:39 +0000 ../index.html Continue reading Page Syncing with Rudolph]]> Hi All, I recently posted the below viz of an animated Rudolph the Red Nosed Reindeer sing-a-long. It’s pretty simple but I had to overcome a few things around the Pages shelf and how it synced across worksheets, so I thought I would share!

But First – the data

First of all, a quick summary of how I got the data together. Normally when I have vizzed music before, I have got hold of the data behind a midi file to do this. But for this one, as it was so simple, I just created it myself in Excel.

To do this, I first googled some simple sheet music for the tune that looked like this:

And assigned a number for each ‘Note’ – I kept this simple (and not strictly musically accurate) by just naming the lines and spaces on the stave sequentially:

This way I could use this as my y axis to place the notes. So in the example music above, the first note (a ‘G’) would be a number ‘3’ on my scale. I had originally started from ‘1’ but then realised the music dropped to a D at one point so had to add a 0!

The next thing I had to think about was the length of each note, and how many ‘Pages’ I wanted to have in my visual. For the timing to work well I needed to have each page at the shortest note length throughout the whole tune. Thankfully this tune isn’t too complex, and the shortest note is a half beat (a quaver) – meaning there are 8 of these in each bar (the example music above equates to 1 bar).

From this I built up my data set to look like the below with a few additions:

These 8 rows are the data behind the first bar example above. To explain this:

Row. This is the row that I want the Lyric to appear on (i.e. the eight rows you can see in the gif)

ID. This is a unique ID for each half beat of the music (there are 256 in total – hence 256 pages)

Note Placement. This is the number I derived from above to be used for the Y axis of the scatter chart. Note: there are gaps where the note lasts longer than half a beat – this is to avoid showing multiple marks on the viz for just one note.

Word. This is the lyric that is sung for that note.

Word ID. This is the ID of the word on each Row, and is used to control where the red underline for the sing-a-long words is placed. Note: there are no gaps for this one, as I want the red mark to stay visible throughout the length of the note.

The Build

Next to build the vizzes! Firstly I wanted to make sure that my scatter plot would work the way I had envisioned – which was to start of blank, and fill up with the notes as the song progressed. This is how the sheet was set up:

Initially when play was pressed, I was greeted with a bouncing single ball, and not the history I was expecting, even when ‘Show History’ was checked. This was because I also needed to make sure the ‘All’ option was selected in the further menu, and not just ‘Selected’:

Here I also tweaked some of the defaults, turning off the fade and selecting a % opacity format for the historic marks. But this was it for the tune part of the viz.

In terms of the lyrics and the red underscore – I had originally planned for these to be on one sheet. However I quickly realised this wouldn’t work as although I want the underscore to be synced with the tune above, I wanted the lyrics to be visible all the time. So for this to work the lyrics needed to be a separate worksheet which looked like this:

Here you can see it with headers switched on. The Row as per what I entered in the data placing the words on the Y axis, and the word ID spacing the words appropriately left to right. I used a transparent shape mark with the word as a label.

Pretty simple for the lyrics, so onto the red underscore. The viz itself is basically the same as the Lyrics page, just using a custom shape as the underscore. However for page animation, I originally thought I could just set it with no history shown – and this sheet could sit under the lyrics sheet. However, when you sync page animations across multiple pages, they are all bound by the same page control – so if you set history on for one, then you get it for all of them!

A bit of a pain I initially thought, but then I realised there was an easy fix – and that was just to make the historic marks the same colour as the background so that it appears they don’t exist! As thankfully the colours don’t sync accross the worksheets.

Here is the underscore page running just as a worksheet:

You can see the dark grey historic marks clearly, however when running against the same coloured background, it is like they don’t exist!

So that is everything sorted and synced! It was just a case of some careful (and manual) floating and sizing of the two lower sheets so the underscores appear in the right place, and the whole thing was complete!

So all a bit of fun really, but good to pick up some new info about how the page shelf works!

Hope you find this useful.

Ant.

]]>
../2023/12/21/page-syncing-with-rudolph/feed/index.html 0 2316
Cool stuff in Tableau Public – September 2023 ../2023/09/25/cool-stuff-in-tableau-public-september-2023/index.html ../2023/09/25/cool-stuff-in-tableau-public-september-2023/index.html#respond Mon, 25 Sep 2023 19:50:10 +0000 ../index.html Hi All,

Highlighting some more cool visualisations that I have seen over the last couple of months!

Stanley Kin Nok Chan – “Scientists That I Like”

Stanley rendered his favourite Scientists in lines using parametric equations in Tableau, and it looks really cool! You can switch between them using the drop down menu. The animations don’t display on Tableau public, but he has put a link to where you can see them in action.

https://public.tableau.com/app/profile/stanleykinnok.chan/viz/ScientiststhatIlike50000/notebook

Brittany Rosenau – “Flavor Distribution across 50 Fruit Snack Packs – Overlay Edition”

This won a #VizOfTheDay shout, and for good reason. Brittany cleverly uses native Tableau features (e.g. annotations) to create different types of Overlays for your dashboard – useful if you don’t want to be dipping into other design tools!

https://public.tableau.com/app/profile/brrosenau/viz/FlavorDistributionacross50FruitSnackPacks-OverlayEdition/50FRUITSNACKPACKS-OverlayEdition

Satoshi Ganeko – “My precious 500 Vizzes”

Big congratulations to Satoshi Ganeko for hitting 500 vizzes on Tableau public – and what a fantastic way to show them with this starry spectacular! Check out the download of his workbook for plenty of trigonometry calculations!

https://public.tableau.com/app/profile/satoshi.ganeko/viz/Myprecious500Vizzes/DB_Main

Zsofia Nika -“New York Philharmonic: Piano Concertos since 1846”

I love music vizzes, and this one is a cracker – lovely simple colour palette and some more trigonometry fun!

https://public.tableau.com/app/profile/zsofia.nika/viz/NewYorkPhilharmonicPianoConcertossince1846/NYPPianoConcertos

Kasia Gąsiewska-Holc – “Custom Chart Builder” & “Superstore Comparison Tool”

Kasia has produced some great business dashboards recently – the #VizOfTheDay winning Custom Chart builder and the Superstore Comparison Tool. Both showing really relevant uses of Parameters and Dynamic Zone Visibility particularly.

https://public.tableau.com/app/profile/kasia.gasiewska.holc/viz/CustomChartBuilder/CustomChartBuilder

https://public.tableau.com/app/profile/kasia.gasiewska.holc/viz/SuperstoreComparisonTool/SuperstoreComparisonTool

Joris van den Berg – “Data Season: a Mobile Magic Dashboard”

I enjoyed this fun one from Joris – I particularly like the mobile phone styling of it, but also the fun and informative dynamic text that pops up depending on the month chosen!

https://public.tableau.com/app/profile/joris.van.den.berg/viz/DataSeasonaMobileMagicDashboard/Homescreen

Lyndsay Betzendahl – “Forbes Cloud 100 Impact of Layoffs”

Here is a beautiful one from Lyndsay – and I’m not going to pretend to know how to build it! This is a very aesthetic looking Voronoi and I love the colours as well. More than anything I like the tagline ‘A completely ridiculous chart’!! 😊

https://public.tableau.com/app/profile/lindsay.betzendahl/viz/ForbesCloud100ImpactofLayoffs/TheCloud100ForbesLayoffs

Ant.

]]>
../2023/09/25/cool-stuff-in-tableau-public-september-2023/feed/index.html 0 2213
Cool stuff in Tableau Public – July 2023 ../2023/07/14/cool-stuff-in-tableau-public-july-2023/index.html ../2023/07/14/cool-stuff-in-tableau-public-july-2023/index.html#respond Fri, 14 Jul 2023 10:39:19 +0000 ../index.html Hi Everyone,

I tend to blog about vizzes I have created and techniques I have used doing them, but I thought I would flip it around and start highlighting a few cool things I have seen in the community (this definitely isn’t everything!). Here are some of the vizzes that have caught my eye over the last month or so.

Victor Munoz – “Travel through my Digital Footprint”

This viz got a #VizOfTheDay nod, and I love how he has used all the app data to ‘Draw’ an actual fingerprint and used transparent sheets and dashboard actions to enable interactivity.

https://public.tableau.com/app/profile/munozdataviz/viz/TravelThroughMyDigitalFootprint/Apps

David Clutterbuck – “Catch the Spider”

Definitely my kind of visualisation! David built a game where you have to catch the spiders! A fun and creative use of interactivity and animation. (Hint: if you are struggling to catch spiders, look out for the ‘Hand’ changing size!).

https://public.tableau.com/app/profile/david.clutterbuck/viz/Spider_16869572115340/CatchtheSpider

Jack Hineman – “Superstore Rolling Employee Retention”

This is a super clever dashboard, with everything built into one sheet.

I counted 33(!!) different active map layers used to create this visual – meaning he was able to keep precise control over how everything worked on the dashboard!

https://public.tableau.com/app/profile/jack.hineman/viz/SuperstoreRollingEmployeeRetention/EmployeeRetention

Brian Moore – Games

Brian’s vizzes are always very clever, and he has just started sharing some vizzes based on classic games, and the first ones are here:

Checkers

This is a super cool two-player version of Checkers, which uses lots of parameter actions and a transparent sheet to control it all. It works so well, and I particularly like the effect of ‘Picking-up’ the checker piece you get when you click on the one you want to move!

https://public.tableau.com/app/profile/brian.moore7221/viz/Checkers_16886487484800/Checkers

Rubiks Cube

How cool is this!!? It uses similar overlay sheet/parameter action functionality to Checkers above, but the Rubiks cube viz itself is really nicely built using polygons and lines. Again this works so well and is super fun (even though I am terrible at Rubiks cubes 😂)

https://public.tableau.com/app/profile/brian.moore7221/viz/RubiksCube/RubiksCube

Hope you enjoyed these as much as I did!

Ant.

]]>
../2023/07/14/cool-stuff-in-tableau-public-july-2023/feed/index.html 0 2140
Light Sabers ../2023/05/04/light-sabers/index.html ../2023/05/04/light-sabers/index.html#respond Thu, 04 May 2023 09:00:00 +0000 ../index.html May the 4th be with you!

I built this Viz showing the various light saber colours and their primary users, and thought I would write a quick blog on it for May 4th!

This is actually a relatively simple viz, containing two main elements. Lots of Lines to create each of the colours, and two shapes to get the ‘hilt’ of the light saber and the clickable ‘Button’ for which to use a parameter action on.

Data Set

The data set I used for this was very simple: 2 records for each light saber, with an X and Y coordinate for the start and end of each line (when the light saber is ‘on’).

Lines

My Light Sabers are made up of 4 lines of varying widths stacked on top of each other. They have varying hues of their primary colour so as to give them some kind of ‘Light Saber’ effect. To do this I used Map Layers so I can have them all on one sheet, and some calculations and a parameter to determine if a particular Light Saber is on or off.

pCharacter

First I need a parameter to hold the ‘switched on’ light sabers:

This will updated with a ‘~’ followed by the character name whenever a saber is turned on.

UpdateX

Then I need a calculation to update the end point of the line if the saber is on:

What this will do is check if the record is an ‘End’ type (i.e. the end of the line). If it is, it will check the pCharacter parameter to see if it contains the character name, and if it does it will take the X value from the data, or if not it will return 0 (keeping the saber off).

MakePoint

Then I need my MakePoint calculation to be able to use Map Layers:

This makes a point on a map at coordinates UpdateX and Y.

Next, I can drag my MakePoint onto the canvas 4 times (adding as a separate Map Layer each time), before switching rows and columns.

Change the Mark Type for each layer to ‘Line’ and add Type to the path shelf (so Tableau knows how to connect the line) and Character to Detail (so Tableau knows how to split the line)

Finally, double-click the Y axis and reverse it:

This got me to the place where my lines are working, now I need to size and colour them accordingly.

The Top mark on the layer shelf will be the one that displays on top of everything else, so this needs to be the thinnest line with the lightest colour. And worth noting this can’t be a transparent colour as the layering with the other colours will be compromised.

For the Top layer, I used a very close-to-white colour for all sabers. For the next three layers, I needed differing colour palettes for each saber. So I used the Character field for one palette, then made duplications of this field twice more to get the other layer palettes. In this screenshot you can see the colours I used:

I then need to adjust the Size to make the colours work well. For the first three layers I was able to do this just using the Size slider in the marks card – however for the last layer (the largest one) it wouldn’t let me go large enough for what I needed.

Tip: if you need your mark size to go higher than the default slider, then you can get around it by putting something on the Marks card and editing the size defaults. I decided to use a parameter called pSize which goes from 0-100, and then edited the size shelf to increase the size range:

I talk about this technique a bit more in this blog: ../2023/01/31/sizing-marks-across-worksheets/index.html.

With this in place, we are pretty much there. Next we fix the X axis so that the initial circular mark won’t display on the canvas, and will enable the lightsaber animation to work well.

And finally, hide the axes and set the background colour to the same as the dashboard default (a near black):

These are the lines done!

Icons

For the light saber hilt and button icons, I headed over to Figma and first created a frame with my Light Saber hilt within it formed of a number of different rectangles and a circle. The frame background was set to transparent.

This gives me the hilt, but to get the appearance of only the button being clickable, I need a second icon. For this I copied the above frame and deleted all of the rectangles, and left only the round button – but in the same sized Frame:

We keep the frames the same size, so that when the icons are placed on top of each other in Tableau, the button only icon is the one we will want to press, and it will appear in the exact same spot as the main icon.

I then export these two images as “.png” files and save them in my Tableau Repository -> Shapes folder in a new folder:

Back in Tableau, we need to build a sheet to use for the icons.

Drag MakePoint onto the canvas twice as map layers, and Type to filter so we can only choose ‘Start’ (we want a static point to display these icons) and then flip the axes. Put Character into detail, and change the shape for each layer to be the button only (on the top layer) and the full hilt on the bottom layer (if your icons haven’t appeared – click ‘Reload Shapes’).

Finally drag the size slider up to max for both layers:

This is the saber hilts set up – it just needs removing all the background ink (gridlines etc.) and changing the background to match the previous sheet.

Now when you hover over the hilt, you will see that only the button appears to be highlighted (as we put the button-only icon on the top layer):

Now we need to add some calculations so we can get the functionality working when on the dashboard. This involves the following calculations:

AddCharacterToParameter

This field will add a character to the parameter string, or if you are selecting a character that is already there, will remove that character from the string. We will pass this value through to the pCharacter parameter when the user clicks on the hilt.

True and False

The trusty true and false calculations:

These will be used to automatically deselect the marks once a user has selected them.

These three calculations are placed on the Detail shelf of the top layer in this view. With this complete, we now need to position the two sheets on the dashboard.

Dashboard Build

The two sheets are placed next to each other in a ‘Horizontal’ container, and the padding on the right side of the hilt sheet should be set to 0. On the left side of the lines sheet, this should also be set to 0. Also both sheets should be set to ‘Fit -> Entire View’. The result means the two sheets sit right next to each other with no break, and appear as one. Note you will need to adjust the width of the hilt sheet until the icon fits exactly.

With these set up, we then need two dashboard actions:

pSaberSwitch

We want to update pCharacter with the field AddCharacterToParameterwhen the user clicks, and the value should stay when the selection change

DeselectSaberHilt

This filter action will utilise the True and False fields to automatically deselect a mark once the user has selected it (and the parameter has been updated).

With these two in place the animation will work! The only thing to add is another sheet with the character names to the left of the hilts – this is built in a very similar way to the hilt, but using a transparent shape and Labels to show the character name.

If you look at my workbook, you will also notice I have two other ‘Deselect’ filter actions – these are to apply to the Lines and Labels sheets just like the hilt sheet – and just makes sure that if the user selects one of them, it will just stay unselected. Another way of doing this is just to float a blank object over the parts you don’t want the user to touch.

And there we go! May the Force be with you!

Ant.

]]>
../2023/05/04/light-sabers/feed/index.html 0 1968
Sizing Marks Across Worksheets ../2023/01/31/sizing-marks-across-worksheets/index.html ../2023/01/31/sizing-marks-across-worksheets/index.html#comments Tue, 31 Jan 2023 09:07:48 +0000 ../index.html Hi all!

I have been working on a dashboard at work that requires the ability to have consistent sizes of marks across multiple worksheets. I found a solution that worked for me, so I thought I would put a quick blog out on it.

The simple example I will use is the one below, where I have two sheets showing ‘Action Dots’ next to each bar chart. I want the sizing of the dots to be consistent:

The size I wanted was outside of the usual ‘Snap to size’ option you get on the default Tableau slider:

This is where the slider will stick to the points marked on the line.

However in my dashboard, neither of these ‘Snap’ sizes worked for me – I wanted something in between. The problem with this is that you can’t set this slider to more than one worksheet, so you are faced with estimating the slider individually on each sheet and making sure the sizes all stay the same by eye.

The solution I have found makes use of a parameter to control the size, and some settings changes in the size mark card. I will shout out to my colleague Matt who helped clean up my initial solution (believe it or not I hadn’t used a parameter originally!) and made it work smoother! Here is how the solution looks in the final state:

And the steps I took were as follows:

Create a size parameter which is an integer, range 1-100:

Put this parameter onto the ‘Size’ shelf of the first worksheet you want to be sized this way:

Edit the ‘Sizes’ card when this pops up on the screen:

Change the ‘Sizes Vary’ to ‘By Range’ and set the start and end values to 1 and 100 (same as parameter):

Repeat this size shelf activity for each worksheet you need to be consistent, and then once set up, the parameter will control all the sizes, and you have a precise range of values to set it to.

And that’s it! I hope this may be of use. I’d be keen to hear if anyone has gotten around this via any other means!

Public link to the above dashboard is here:

Resize All Marks

Ant.

]]>
../2023/01/31/sizing-marks-across-worksheets/feed/index.html 1 1893
My 2022 Review – That was pretty good!! ../2023/01/03/my-2022-review-that-was-pretty-good/index.html ../2023/01/03/my-2022-review-that-was-pretty-good/index.html#respond Tue, 03 Jan 2023 16:28:46 +0000 ../index.html Continue reading My 2022 Review – That was pretty good!!]]> Hello all – long time no blog!

I have had a busy and pretty good year, but haven’t been able to blog as much as I would like, so I’m starting the year off with a quick review of what I have been up to, mostly Data Viz but a bit of personal as well!

At points in the year I felt I haven’t been doing as much on Tableau Public as I would like, particularly compared to last year, so I thought it would be a good idea to put it down in writing and also show how it can be good to step back at times and focus on other priorities – namely family.

So here goes:

January

My Tableau year got off to a pretty good start as I got my second Viz of the Day with my #GamesNightViz Skyrim Census viz:

Which has now hit over 23k views. A somewhat businessy dashboard in feel but with a heavy Skyrim makeover!

It was also a pleasure to be recognized in Adam Mico’s ‘Tableau next’ initiative (Tableau Next 2022) .

On a personal note, we made a couple of big decisions for that year. The first was to try and move house, as after living in our previous house through the pandemic, we realized we were ready for a change.

And after 4 years of trying to conceive our second child, with several miscarriages and a lot of heartache, we decided to push ahead with trying to conceive through IVF.

February

February started even better for me in Tableau land as I was named a Featured Author, something I was hoping would happen at some point! This was a real boost to be recognized along with some amazing Tableau Public Authors.

February was also #IronViz ’22 month, and I entered my viz on Leisure Time Music in the UK:

I had struggled with this viz but was pleased with the way it turned out. I also attended the feedback sessions set up for Iron Viz and would highly recommend using these in the future, as you get some great different perspectives.

I also put a blog out on my thoughts on doing IronViz for the second time (Iron Viz ’22 review).

And in personal news, our house move was progressing very well, our house sold as soon as we put it on the market meaning we were in a great position to offer on another house!

March

A relatively quiet viz month, but I did put a blog out on how I built the interactive map on my Skyrim Viz (Building and interactive Skyrim Map).

I also had to remind people of the special day that is March 10th, i.e. Mar10 day! This viz made its regular appearance:

Sometimes the vizzing has to be a back seat to life, and this was definitely a busy month in that respect. We put in an offer on a property and had it accepted! So was now just the case of going through the motions to get it all through – very exciting.

Perhaps more exciting than that was the news that we had indeed got pregnant through IVF. Very early days at this point but incredibly exciting news!

April

I basically went quiet over April, the house move and pregnancy took priority as we had a lot of things to sort out. We also all had COVID at the beginning of the month – and my wife was hit with a double whammy as she was suffering from Morning sickness at the time too!

I had a little break from vizzing and trying to keep up with putting out content this month which I found really helpful to be able to focus on the family. Sometimes you have to take a step back from one thing to focus on something else or else burnout looms!

May

I got back into it in May with my silly Tableau Souls viz based off the Elden Ring computer game, and also a mechanism to try out a scrolling menu idea I had:

May got better when I was nominated for several #Vizzies awards. Even better, I came out winning the #Vizzie for ‘WTF I never knew Tableau could do that’ award which was presented in Vegas at the Tableau Conference. Sadly I wasn’t there in person, but thanks to Marc Reid who collected it and gave it to me in person!

If I could have chosen a Vizzie to win – this would have been it, and pretty much sums up a lot of the vizzes I try and build!

June

June was another quiet vizzing month – although I did hit the milestone of 500 public followers! I also received my copy of the first Nightingale Magazine issue.

However it was a busy month in Pulley family world as we moved house! On a very hot day in the middle of June, I felt very sorry for our removal team!

July

Perhaps obviously, July was taken up with unpacking and sorting out the new house, plus having to cover some of my Daughters first Summer Holiday from school. However I did manage to sneak in a couple of vizzes, including an update of my last year’s Earth Overshoot Day viz, which then won my 3rd Viz Of The Day! That was a nice summer surprise!

Also during July, I was happy to present a session to JLL on invitation from CJ Mayes. I enjoyed talking about some of the interactive and animation tricks I have used in my tableau public vizzes.

August

I got a bit of viz energy back in the summer months, and managed to put out a few vizzes and also finally write a blog on the Carousel Menu approach I used in my Tableau Souls viz (../2022/08/10/create-a-carousel-menu-in-tableau/index.html).

I was pretty pleased with my second Twitter review viz (2 years of using Twitter):

Among other things, I somehow managed to turn 40 during August (I know, a big surprise I’m sure!) and was lucky enough to have friends and family over for a BBQ in our new garden

September

This was a big month, and the highlight of my Tableau year (closely followed by the #Vizzie) as I was named a Tableau Public Ambassador!

This was a big honour as there were so many amazing names on the list! I had been nominated last year, but this year I also applied myself and I felt I may have had a chance. I am very thankful to eveyone who nominated me and who have supported me since I have been actively vizzing in public!

To celebrate this achievement, I published my one potato viz, up there as one of my more pointless visualisations!

I hit another achievement in September, not Tableau this time, but I passed my 1st Dan Black Belt grading in Tae Kwon Do, making me an official black belt!

This was helped significantly by all the training I did during Lockdown, as visualised here:

October

October was #IronViz month, and I was very excited when I saw the subject was Games!! However, the deadline date was the 31st Octover, which was also the planned date for my second daughter to arrive, and we had a fair bit to get ready. I had quite a few ideas for what I could do and a little bit of initial working on them – but I quickly realised that I wasn’t going to have the time to create what I wanted to.

In the end I opted for a quick revision of a previous viz I had done for #IronQuest and #SportsVizSunday on Ronnie O’Sullivan:

I was really happy with the original viz, so just a little bit of updating and adding some extra info as in 2022 Ronnie equalled the record for the most World Championship victories, and I had my entry finished.

Making the decision to do a quick update rather than an entirely new viz was a brilliant decision for me, as it removed all the potential stress of doing it at a time when I needed to be focussed elsewhere. I didn’t expect to win with this viz, but really wanted to enter and get involved as #IronViz is a fun experience. The top 15 vizzes were all amazing and worthy winners.

That was the vizzing for the month, then came the highlight of my year – a beautiful baby girl!

Elsie Charlotte was born healthy on Halloween and we couldn’t be happier – definitely the best Christmas present. What made it all the better was how proud her older sister was.

November

Unsurprisingly, most of November was spent not getting much sleep, and running around a lot after little people! I was lucky enough to get 6 weeks of paternity through Lloyds Banking group, so I had the whole month off.

I did receive my Tabelau Ambassador Swag, which was excellent – thank you Tableau!

I also found a small amount of time to update my Christmas Tree viz from last year, to include some flashing light options:

December

No vizzes from me in December, but I did have the pleasure of presenting at the Tableau Fringe festival on the 16th December, shortly after I returned from Paternity leave.

If you haven’t presented anything before at a community event – it is well worth doing as it is great for a number of reasons. Particularly it reinforces your own learning by talking others through what you have done. It is also really good for understanding your own time-keeping and how much content you can present in a short space of time.

Hopefully all the TFF recording will be available to view at your leisure in the new year.

After all this we then enjoyed our fist Christmas as a family of four!

Summary

So when I write this all down, it feels like a LOT! I feel privileged to have been recognised for a number of different things, and to be able to do a bit more community speaking. A very busy year, and one where I realised that I can’t keep doing everything at the same pace as I had been – but that it is ok to sit back from time to time and focus on the important things.

Happy New Year everyone!

Ant.

]]>
../2023/01/03/my-2022-review-that-was-pretty-good/feed/index.html 0 1833
Create a Carousel menu in Tableau ../2022/08/10/create-a-carousel-menu-in-tableau/index.html ../2022/08/10/create-a-carousel-menu-in-tableau/index.html#comments Wed, 10 Aug 2022 15:38:01 +0000 ../index.html I recently posted a somewhat silly viz based on the game Elden Ring, and my main aim in creating it was to try out creating an animated ‘Carousel’ type menu:

This menu has elements that scroll as you select them, and will infinitely scroll through the members (in this case there are six items for each piece of armour).

I wanted to walk through how I did this, as I think it can have some fun and interactive applications.

The Theory

So in order to do this, we need to understand a bit about animations, and when they animate and when they don’t, as well as how we can use that to make the above work.

Firstly it is very easy to make things move from left to right, or right to left from a parameter, you can just have a coordinates measure that updates when you change the parameter. This is the basic part of what we are doing:

Next, it is also pretty easy to fix the Axes at a point meaning you will only see one element at a time which will animate off the screen when you change the parameter.

In order to get an ‘infinite’ scrolling effect, this is a little bit trickier, as you need to get the marks from the left (or right) side back over to the opposite side without seeing it visually – as by default they would fly back past on the screen like this (You will have noticed this in the previous gifs):

The way I chose to get around this was by utilizing the fact we have fixed the axes and can only see one element at a time. What is important here, is that once the marks are off the visible screen, it doesn’t matter anymore if they animate. So what we can do is move the mark off the screen via animation on one click, and then ‘null’ out or remove that mark on the next click – this causes it to disappear from the non-visible part of the view. Then we can bring this mark back in on the other side of the view the next click along. See the below gif which is the same data, but the Yellow mark is no longer travelling across the screen as it has been ‘Nulled’ out when off the screen.

It is worth noting that you need a minimum of 4 marks to be able to do this (if you are only allowing one to be visible at a time). If you only had 3 marks, you could then just double the number to 6 and duplicate them in order to get this to work.

The Build

So now we have in theory what we need to do, here are the steps to get it working in Tableau, using the simple example I worked through above.

For this example, I will use a small data set containing just 6 items:

These will represent the 6 marks I will be scrolling through.

To start with I need a parameter pID, which I can use to flag the ID central to the view:

I then need to create some co-ordinates calculations so I can plot these marks based on the parameter. Please note that this assumes we will move through the ID values sequentially – and not jump several values at once.

XUpdate is our main driving calculation, it will put the ID equal to the pID at the central position of 1.0, and arrange one to the left and one to the right (at 0.0 and 2.0). It also works out if you are at point 1 or point 6 so you can place these correctly. Finally, anything else will get nulled out and essentially be removed from the view. Note I have used decimal values as this will give me more control of fixing axes later.

Y will just be set to 1, as we won’t be changing this value.

Place them on the view as per below, and then you can see how the animation is actually working before fixing axes:

You can see each time I change the parameter, the mark to the right disappears out and the one on the left appears in, while the other two animate over. Once we fix the axis, this will then mean we get a smooth appearance. We fix the X axis at 0.5 and 1.5:

And now changing the parameter gives you this:

Exactly what I am after! This is all the hard work done, now there are a few bits to sort before the user experience is sorted.

We want to provide left and right buttons rather than a drop-down parameter list – this way there is no chance of accidentally skipping any marks and messing the animation up.

This can be done simply using two other worksheets (or one depending on where you put your arrows) and two calculations:

This will allow us to change the parameter using a parameter action when you press a left arrow. It basically takes the current parameter value and reduces it by 1, or sets it to 6 if we are on 1 already. You can add this to a separate worksheet like this, using an arrow shape:

Then add this to your dashboard, along with the following parameter action:

This will achieve the following:

And you can rinse and repeat for the right arrow with a slightly different calculation:

Add it to the dashboard with another parameter action, and we have it working!

One more thing is to use the TRUE/FALSE filter trick to deselect the arrows as soon as they are pressed, to improve the user experience. Then tidy up the formatting and we are done!

I hope you found this interesting! I have posted the workbook to Tableau Public if you want to have a look yourself:

Animated Continuous Carousel Example

Thanks!

Ant.

]]>
../2022/08/10/create-a-carousel-menu-in-tableau/feed/index.html 1 1734
Building an Interactive Skyrim Map ../2022/03/04/building-an-interactive-skyrim-map/index.html ../2022/03/04/building-an-interactive-skyrim-map/index.html#comments Fri, 04 Mar 2022 17:11:09 +0000 ../index.html Hi All! A lot of people gave me some nice comments about the Map I made in my recent Skyrim #VOTD as part of #GamesNightViz and, slightly later than planned, I thought I would write a blog on it!

Interactive Map on my Skyrim Census Visualisation

This map is all built on one worksheet and features a few techniques:

  • Using a Background Map
  • Using the Automeris tool to plot points
  • Using Map Layers and Parameter Actions to create interactions
  • Using Figma to design labels

Background Map

The first step was to find an appropriate map to use for the background – I got mine from uesp.net. I then need a ‘Clean’ version of this saved to use as the background, and I need to make an additional version which I can use with the Automeris tool to get coordinates of the points I wanted to plot.

Automeris to Plot Points

Using Figma, I drew a number of circles onto the map for the points I wanted plotted – I choose pink for the cities and blue for the towns. These colours needed to be different to any of the colours on the underlying map for the Automeris tool to be able to recognise them. I could have only used 1 colour in the end, but initially I decided to split the towns and cities up.

This is the image I would load into Automeris:

I can then load this into Automeris using File -> Choose Files -> Image -> Align Axes:

Now we have the picture loaded we can set the foreground colour to be the pink or blue, and then hit Run with everything else as default. You can see that the tool picks up each of the points we made on the image.

From here we can export the data (click ‘view data’ -> ‘download .csv’) to get a file with a list of coordinates.

As there were only a small number of points, I manually assigned these to the towns and cities in my data to build a data set with the data I needed:

Now I have my data set and background image to go into Tableau and start building.

Map Layers and Parameter Actions

Note – as Map Layers only allows you to work between certain numbers ranges (-90 to 90 for Latitude and -180 to 180 for Longitude) I decided to divide all my coordinates by 1000 so they would work properly.

The first thing I will do is get the points plotted onto a map. To do this I need a few calculations:

YAmended

522-[Y]

I have amended my Y value as Tableau will plot them in the reverse order to what I want them by default. So to correct this I have taken the number of pixels hight of the map picture (Map is 696 * 522 px), and taken off the Y value – which will in effect reverse the axis. I chose to do this so that I didn’t have to use reversed images when putting a background map on.

MakePointMap

MAKEPOINT(X/1000, [YAmended]/1000)

This takes the X and amended Y coordinates, divides by 1000 and uses the makepoint function to convert to a spatial field.

Now we can put these on the map. As per normal I would drag three of these onto the map, to make sure Tableau recognises the map layers, add location to detail and switch the axes:

You can see the dots look about right, but it is a bit strange without any context. So next we want to add the background map. This is quite straightforward, you got to Map -> Background Images -> MapPoints (or whatever your data source name is. From here you can ‘Add Image’ which will allow you to browse for your original map file.

When chosen you can then specify the area it fills on the chart. We know our map is 696 x 522 px dimensions, and that we are dividing by 1000. So in this case we would set our X value between 0 and 0.696 and y between 0 and 0.522 to ensure the map perfectly fits the background:

You can see that the background map appears, with the dots nicely on top of the points we wanted. You will also notice the axes grow to show the whole map, which is ideal.

I will actually use this layer I have created as my selection layer, so I want to create a parameter and associated calculations that will allow the user to choose a City or Town to view:

pMapLocationSelect

This simple string parameter will store the user’s selection.

LocationPass

if [pMapLocationSelect] = [Location] then “” else [Location] end

This calculation will decide what is passed into the parameter – if the location is already in the parameter it will send a blank value (hence hiding the mark), otherwise, it will return the location selected (and show the mark).

LocationPass gets added to the Detail shelf on the map layer, and a parameter action set up on click that updates pMapLocationSelect with the result of LocationPass. See how the parameter changes here:

This is the fundamentals all done in terms of functionality – now all I need is a couple more layers, one for the circle around the town and one for the actual label.

To get the circle, this just needs a couple of calculations:

YAmendedSelectedCity

if [pMapLocationSelect] = [Location] then
522-[Y]
END

This will only return a value if the location is selected, and null (not shown) otherwise.

MakePointLabelSelected

MAKEPOINT(X/1000, [YAmendedSelectedCity]/1000)

And this makepoint will only populate when the selected city matches.

This can be added as another layer and sized to circle the city properly:

I also ended up using the ‘Type’ (city/town) field to size them both differently.

Now this layer is set up, the original layer can now be changed to a transparent shape mark so you can only see the selection:

Now finally we need to add the label.

Design and Build the Label

To design the label I went back to Figma. I used the original map image, and put that as a background to a custom polygon shape. I then cropped the background so I could get a fairly clear part of the map:

And just added a dashed border to it using a dark brown colour from the map, and created a downward and upward version of the label:

I added these to my custom shapes library in Tableau so I could then use them as icons.

To implement this in Tableau I need a few more calculations:

ShapeUpOrDown

if Y<= 261 then ‘Up’ else ‘Down’ end

This defines which shape to use based on a mid-point of the Y value.

Location Split

replace([Location],” “,char(13))

This splits any locations with a space in them onto two lines (using char(13) which is carriage return) so they fit better in the label.

UpPointSpace

if Y<=261 then char(13) end

Adds an extra space to the label at the top if the arrow is pointing Up.

YAmendedLabel

if [pMapLocationSelect] = [Location] then
if Y<= 261 then 522-[Y]-[pYChangeLabel]
else 522-[Y] +[pYChangeLabel]
END
END

This places the label at a point above or below the selected location depending on if it is above or below the mid-point of the map. I used the parameter pYChangeLabel so I could adjust this on the final dashboard to be in the correct space.

MakePointLabel

MAKEPOINT(X/1000, [YAmendedLabel]/1000)

Final makepoint calculation to place the labels.

Next we again place the new MakePointLabel onto our worksheet, adding Location Split, Type, Population and UpPointSpace to the text mark as well. Also add ShapeUpOrDown to the shape shelf and set the relevant icon to each:

And the label format looks like:

In the worksheet the label doesn’t appear in the correct place, but this is adjusted using the parameter when it has been placed onto the dashboard.

This is all the steps done – now just time for…

Tidying Up

When everything is placed onto the dashboard in the correct position, this is the time to tidy everything up:

  • Make the worksheet actions into parameter actions
  • Add in some true/false ‘Deselection’ filters to deselect any mark that has been selected
  • Hide any axes and remove any formatting of gridlines etc.
  • Adjust the pYChangeLabel parameter to make sure the labels sit in the correct place on the final dashboard

And there we have it!

Interactive Map on my Skyrim Census Visualisation

I hope you found this useful, please let me know if you have any questions. My full viz is downloadable on Tableau Public if you want to have a play!

Ant.

]]>
../2022/03/04/building-an-interactive-skyrim-map/feed/index.html 1 1641