For some reason, I felt like doing a mobile layout. To get some design inspiration I scouted Pexels for nature and landscape photos or paintings. This beautiful abstract photo of Bondi Beach by Max Ravier caught my eye. I knew that I had found my background. I only added some blur to make it less distracting and ended up with this beautiful sunset gradient.
The first viz is pretty simple. It’s actually very similar to the original image we gave a Makeover to this week. The only thing I changed was limiting it to the Top 20 instead of showing all possible elements.
For the second page, I wanted users to be able to find a painting by chosing the elements they want to appear in it. I grouped the elements (for example, putting all types of trees into one tree category) and created the grid layout. I then created a set and a set action that will filter the list depending on the elements chosen in the top part of the visualization. But here’s the catch – the filter based on the set will have an OR logic. For example, if you select ‚beach‘ and ‚boat‘ you’ll get all paintings that include either beach elements or a boat. But I wanted the results to be limited to only those paintings that include both elements.
Achieving the AND logic in this case requires a few LOD calculations:
1) Calculate the number of elements that are currently in the set
2) For each painting, calculate the number of elements that are both included in the picture and also included in the set
3) Create a boolean field that checks whether the number of elements in the set is the same as the elements in the painting.
Use this boolean as a filter and allow only TRUE values. Now only those paintings will be listed that include ALL of the elements chosen.
And that’s it for this week. Check out the interactive version here.