{"id":44816,"date":"2018-06-12T21:01:39","date_gmt":"2018-06-12T13:01:39","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=44816"},"modified":"2018-06-12T20:34:53","modified_gmt":"2018-06-12T12:34:53","slug":"create-javascript-powered-data-charts-billboardjs","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/","title":{"rendered":"Create JavaScript-Powered Data Charts With Billboard.js"},"content":{"rendered":"<p>Graphics and visuals play a vital role in improving the web content. With modern technology it\u2019s so easy to add custom visuals <a href=\"https:\/\/www.hongkiat.com\/blog\/free-premium-svg-icons-zondicons\/\">like SVG icons<\/a> into your page.<\/p>\n<p>But another surprising visual you can build from scratch is a web chart.<\/p>\n<p>This can help you <strong>graph the data visually<\/strong> so your visitors can quickly skim pertinent information. And rather than coding a graph yourself you can use a library like <a href=\"https:\/\/naver.github.io\/billboard.js\/\" target=\"_blank\">Billboard.js<\/a> to do all the heavy lifting.<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/js-library-interactive-charts\/\">9 Javascript Libraries To Build Interactive Charts<\/a><\/p>\n<figure><a href=\"https:\/\/naver.github.io\/billboard.js\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg\" alt=\"billboard js script\" width=\"1000\" height=\"479\"><\/a><\/figure>\n<p>This is actually built on top of <a href=\"https:\/\/d3js.org\/\" target=\"_blank\">D3<\/a> which is a JavaScript data visualization library. It\u2019s easily the most popular one out there making it the safest dependency you could ask for.<\/p>\n<p>With Billboard.js you can access the D3 API quickly and easily. The primary goal of Billboard is <strong>ease of use, making it accessible to anyone<\/strong>. Although it does help to have <a href=\"https:\/\/www.hongkiat.com\/blog\/web-dev-youtube-channels\/\">some experience<\/a> with JavaScript, you certainly don\u2019t need to be an expert.<\/p>\n<p>Just note the entire codebase uses ES6 syntax which can be confusing to less-experienced JS devs.<\/p>\n<p>As long as you <strong>know how to compile the code<\/strong> you should be fine. We actually covered a few <a href=\"https:\/\/www.hongkiat.com\/blog\/ecmascript-6\/\">hot features<\/a> from ES6 if you wanna learn more.<\/p>\n<p>All the technical details about this plugin may seem nice. But you probably just wanna know <strong>what this can do<\/strong>.<\/p>\n<p>Have a look at the <a href=\"https:\/\/naver.github.io\/billboard.js\/demo\/\" target=\"_blank\">demo page<\/a> and click through some of the live examples.<\/p>\n<figure><a href=\"https:\/\/naver.github.io\/billboard.js\/demo\/\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/02-billboardjs-demo-example.jpg\" alt=\"demos of billboard charts\" width=\"1000\" height=\"363\"><\/a><\/figure>\n<p>You\u2019ll find everything from pie graphs to scatter plots and custom animated bar graphs.<\/p>\n<p>With Billboard.js you have <strong>full control over your data<\/strong>. You control how it appears on the page, how it\u2019s structured, and what type of UI\/UX features you add(if any).<\/p>\n<p>It\u2019s really a fantastic chart library and it\u2019s one of the easiest to pick up. Have a look at the project\u2019s <a href=\"https:\/\/github.com\/naver\/billboard.js\" target=\"_blank\">GitHub repo<\/a> to learn more.<\/p>\n<p>You can also dig into <a href=\"https:\/\/codepen.io\/netil\/pen\/mwWvGO\" target=\"_blank\" rel=\"nofollow\">this snippet<\/a> on CodePen if you wanna toy with the code in your browser.<\/p>\n<p><iframe height=\"400\" scrolling=\"no\" title=\"billboard.js\" src=\"https:\/\/codepen.io\/netil\/embed\/mwWvGO\/?height=400&theme-id=0&default-tab=js,result&embed-version=2\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\" style=\"width: 100%;\"><\/iframe><\/p>","protected":false},"excerpt":{"rendered":"<p>Probably the easiest way to create a &#8216;chart&#8217; instantly.<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[3497],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create JavaScript-Powered Data Charts With Billboard.js - Hongkiat<\/title>\n<meta name=\"description\" content=\"Probably the easiest way to create a &#039;chart&#039; instantly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create JavaScript-Powered Data Charts With Billboard.js\" \/>\n<meta property=\"og:description\" content=\"Probably the easiest way to create a &#039;chart&#039; instantly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-12T13:01:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Create JavaScript-Powered Data Charts With Billboard.js\",\"datePublished\":\"2018-06-12T13:01:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/\"},\"wordCount\":347,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/create-javascript-powered-data-charts-billboardjs\\\/01-billboard-js-script.jpg\",\"keywords\":[\"Javascript Library\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/\",\"name\":\"Create JavaScript-Powered Data Charts With Billboard.js - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/create-javascript-powered-data-charts-billboardjs\\\/01-billboard-js-script.jpg\",\"datePublished\":\"2018-06-12T13:01:39+00:00\",\"description\":\"Probably the easiest way to create a 'chart' instantly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/create-javascript-powered-data-charts-billboardjs\\\/01-billboard-js-script.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/create-javascript-powered-data-charts-billboardjs\\\/01-billboard-js-script.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/create-javascript-powered-data-charts-billboardjs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create JavaScript-Powered Data Charts With Billboard.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create JavaScript-Powered Data Charts With Billboard.js - Hongkiat","description":"Probably the easiest way to create a 'chart' instantly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/","og_locale":"en_US","og_type":"article","og_title":"Create JavaScript-Powered Data Charts With Billboard.js","og_description":"Probably the easiest way to create a 'chart' instantly.","og_url":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2018-06-12T13:01:39+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Create JavaScript-Powered Data Charts With Billboard.js","datePublished":"2018-06-12T13:01:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/"},"wordCount":347,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg","keywords":["Javascript Library"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/","url":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/","name":"Create JavaScript-Powered Data Charts With Billboard.js - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg","datePublished":"2018-06-12T13:01:39+00:00","description":"Probably the easiest way to create a 'chart' instantly.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/create-javascript-powered-data-charts-billboardjs\/01-billboard-js-script.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/create-javascript-powered-data-charts-billboardjs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create JavaScript-Powered Data Charts With Billboard.js"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-bEQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=44816"}],"version-history":[{"count":1,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44816\/revisions"}],"predecessor-version":[{"id":44817,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44816\/revisions\/44817"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=44816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=44816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=44816"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=44816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}