{"id":1308,"date":"2013-07-21T15:15:21","date_gmt":"2013-07-21T20:15:21","guid":{"rendered":"http:\/\/www.dannyadam.com\/blog\/?p=1308"},"modified":"2018-09-13T15:21:10","modified_gmt":"2018-09-13T20:21:10","slug":"bar-charts-for-hacker-news-polls","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2013\/07\/bar-charts-for-hacker-news-polls\/","title":{"rendered":"Bar Charts for Hacker News Polls"},"content":{"rendered":"<p><strong>Update 10\/14\/2013<\/strong>: The tool is now available as an extension on the <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/bar-charts-for-hacker-new\/dpdhhdidaaippolkbadpdhlffnpnjimd\">Chrome Web Store<\/a>.<\/p>\n<p>I was recently viewing a poll on <a href=\"https:\/\/news.ycombinator.com\/\">Hacker News<\/a>\u00a0and thought it would be useful to visualize the results of the poll, so\u00a0I wrote a script for generating bar charts. The image below shows an example.<\/p>\n<p><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2013\/07\/bar_chart.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1309\" alt=\"Bar Chart Example\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2013\/07\/bar_chart-300x230.png\" width=\"300\" height=\"230\" srcset=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2013\/07\/bar_chart-300x230.png 300w, https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2013\/07\/bar_chart.png 832w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><!--more-->The script can be used with the following bookmarklet or Greasemonkey script.<\/p>\n<ul>\n<li><script type=\"text\/javascript\" src=\"\/blog\/wp-content\/uploads\/2013\/07\/hnBookmarklet.js\"><\/script><\/li>\n<li><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2013\/07\/HnPollVis.user_.js\">Greasemonkey Script<\/a><\/li>\n<\/ul>\n<p>At the time of this post there are no polls on the HN front page, but here are some links to existing polls:<\/p>\n<ul>\n<li><span style=\"line-height: 16px;\"><a href=\"http:\/\/news.ycombinator.com\/item?id=3746692\">Poll: What&#8217;s Your Favorite Programming Language?<\/a><br \/>\n<\/span><\/li>\n<li><a href=\"http:\/\/news.ycombinator.com\/item?id=3786926\">Poll: How long have you been programming?<\/a><\/li>\n<li><a href=\"http:\/\/news.ycombinator.com\/item?id=3298905\">Poll: HN readers, where&#8217;s your residence?<\/a><\/li>\n<\/ul>\n<p>Here are some other tools that can be used for visualizing Hacker News poll data (I have not tried all of these).<\/p>\n<ul>\n<li><a href=\"http:\/\/hnlike.com\/hncharts\/\">HN Charts<\/a><\/li>\n<li><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/hacker-news-enhancement-s\/bappiabcodbpphnojdiaddhnilfnjmpm\">Hacker News Enhancement Suite<\/a>\u00a0(chrome extension)<\/li>\n<li><a href=\"https:\/\/news.ycombinator.com\/item?id=528172\">Polls chart bookmarklet (and GreaseMonkey script)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Update 10\/14\/2013: The tool is now available as an extension on the Chrome Web Store. I was recently viewing a poll on Hacker News\u00a0and thought it would be useful to visualize the results of the poll, so\u00a0I wrote a script for generating bar charts. The image below shows an example.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[29,28,27],"class_list":["post-1308","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bar-charts","tag-data-visualization","tag-hacker-news"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-l6","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/comments?post=1308"}],"version-history":[{"count":62,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1308\/revisions"}],"predecessor-version":[{"id":25533,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1308\/revisions\/25533"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=1308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=1308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}