{"id":114,"date":"2017-04-11T01:43:44","date_gmt":"2017-04-11T01:43:44","guid":{"rendered":"https:\/\/www.datahasbyte.com\/blog\/?p=114"},"modified":"2017-04-11T01:43:44","modified_gmt":"2017-04-11T01:43:44","slug":"workout-wednesday-week-10-hexbin-map","status":"publish","type":"post","link":"https:\/\/www.a-j-c.com\/welcome\/2017\/04\/11\/workout-wednesday-week-10-hexbin-map\/","title":{"rendered":"Workout Wednesday Week 10: Hexbin Map"},"content":{"rendered":"<p><a href=\"http:\/\/www.womanindata.co.uk\/2017\/03\/workout-wednesday-week-10-exploring-uk.html\">Week 10<\/a>. Another week&#8217;s challenge, and another oh so close reconstruction of the visualization. Here, I set a personal best to re-creating the entire dashboard; except it took me over an hour to get the &#8216;size of hex&#8217; parameter to work.<\/p>\n<p id=\"ApHInjA\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-152 size-medium\" src=\"https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58eeea1b952ea-227x300.png\" alt=\"\" width=\"227\" height=\"300\" srcset=\"https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58eeea1b952ea-227x300.png 227w, https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58eeea1b952ea.png 649w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/p>\n<p><!--more--><\/p>\n<p>Firstly, the easier parts:<\/p>\n<ol>\n<li>This required custom shapes, namely a hexagon. I&#8217;d already one in my custom shapes folder, but if you&#8217;ve never used custom shapes, it&#8217;s quite easy. All you need is a shape, and to drop that folder in Documents &gt; My Tableau Repository &gt; Shapes (Windows at least)<img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"150\" class=\"alignnone size-full wp-image-116 \" src=\"https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58ec31368b9ce.png\" alt=\"\" \/><\/li>\n<li>From here, change the Marks to Shape, and select (from Custom Shapes) the hexagon.<\/li>\n<li>(Where I went wrong) create calculated fields:\n<ol>\n<li>\n<pre><strong>Lat Round<\/strong> Round([Latitude], 2)<\/pre>\n<\/li>\n<li>\n<pre><strong>Long Round\u00a0<\/strong>Round([Longitude], 2)<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>Add Lat Round to rows and Long Round to columns. Add coloring, filters.<\/li>\n<li>Finally, add the parameter, created calculated field from parameter, drop to the Size card&#8230;. and nothing.<\/li>\n<li>Commence troubleshooting&#8230;. scroll through the function list, again and again, notice nearly an hour has passed&#8230; what&#8217;s this\u00a0HEXBINX, HEXBINY? Of course, it&#8217;s exactly what&#8217;s mentioned <a href=\"https:\/\/www.tableau.com\/about\/blog\/2016\/7\/how-create-density-maps-using-hexbins-tableau-56511\">here<\/a> (which is what is linked to on the <a href=\"http:\/\/www.womanindata.co.uk\/2017\/03\/workout-wednesday-week-10-exploring-uk.html\">Week 10 challenge page<\/a>)<\/li>\n<li>Here&#8217;s what finally solved it for me\n<p id=\"aZEXxME\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"74\" class=\"alignnone size-full wp-image-117 \" src=\"https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58ec332112b48.png\" alt=\"\" srcset=\"https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58ec332112b48.png 524w, https:\/\/www.a-j-c.com\/wp-content\/uploads\/2017\/04\/img_58ec332112b48-300x42.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/>Always something that stumps me! Nice work, <a href=\"https:\/\/twitter.com\/EmmaWhyte\">Emma<\/a>!<\/p>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>In all it&#8217;s glory (re-sized for the post)<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/public.tableau.com\/views\/WorkoutWednesday2017Week10\/Dashboard1?:showVizHome=no&amp;:embed=true&amp;:toolbar=no&amp;:tabs=no\" width=\"650\" height=\"800\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Week 10. Another week&#8217;s challenge, and another oh so close reconstruction of the visualization. Here,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[15,19],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-viz","tag-tableau","tag-workout-wednesday"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":0,"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.a-j-c.com\/welcome\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}