{"id":10080,"date":"2020-04-06T11:21:14","date_gmt":"2020-04-06T11:21:14","guid":{"rendered":"https:\/\/www.anychart.com\/blog\/?p=10080"},"modified":"2022-08-13T09:16:20","modified_gmt":"2022-08-13T09:16:20","slug":"javascript-column-bar-charts","status":"publish","type":"post","link":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/","title":{"rendered":"Creating JavaScript Column and Bar Charts on COVID-19\u00a0Data"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10082\" src=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\" alt=\"Laptop with a JavaScript chart visualizing the latest COVID-19 data illustrating a tutorial on how to create JavaScript column and bar charts\" width=\"100%\" srcset=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png 1200w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog-300x159.png 300w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog-768x408.png 768w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog-1024x544.png 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><strong>Need compelling JS charts for your website or app? Start with the basics! Complete this quick data visualization tutorial and you&#8217;ll learn how to easily create JavaScript <a href=\"https:\/\/www.anychart.com\/chartopedia\/chart-type\/column-chart\/\">column<\/a> and <a href=\"https:\/\/www.anychart.com\/chartopedia\/chart-type\/bar-chart\/\">bar charts<\/a> that will look great in any HTML5-based project, allowing for easy comparisons.<\/strong><\/p>\n<p>Chart examples to be built and demonstrated in this tutorial will be visualizing the latest <a href=\"https:\/\/github.com\/CSSEGISandData\/COVID-19\" target=\"_blank\" rel=\"nofollow\">novel coronavirus cases data from JHU CSSE<\/a> as COVID-19 is the most topical issue nowadays.<\/p>\n<p>Keep reading and you&#8217;ll see JS charting is actually very simple. Especially if you have at least a very basic understanding of programming (more than that is awesome but far from necessary).<\/p>\n<p><!--more Read the JS charting tutorial \u00bb--><\/p>\n<h2>How to Build Basic JavaScript Column\u00a0Chart<\/h2>\n<p>Generally, it takes four simple steps to make a JS chart of almost any basic type, and a column chart is not an exception:<\/p>\n<ol>\n<li>Create a web page.<\/li>\n<li>Reference necessary files.<\/li>\n<li>Set the data.<\/li>\n<li>Code the chart.<\/li>\n<\/ol>\n<p>Let&#8217;s take them now one by one and then proceed to a bit more advanced customization for better illustration.<\/p>\n<h3>1. Create a web\u00a0page<\/h3>\n<p>First, create an HTML page where you want to build the chart.<\/p>\n<p>Add a block-level HTML element that will be a container for the chart and specify its ID.<\/p>\n<p>To make the chart fill the entire page, set the <code>width<\/code> and <code>height<\/code> parameters at 100%.<\/p>\n<p>So the entire HTML page can look like this:<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;JavaScript Chart on COVID-19 Data&lt;\/title&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\" style=\"width: 100%; height: 100%;\"&gt;&lt;\/div&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h3>2. Reference necessary files<\/h3>\n<p>Second, include all necessary scripts to build the chart\u200a\u2014 in the <code>&lt;script&gt;<\/code> tag inside of the <code>&lt;head&gt;<\/code> section.<\/p>\n<p>The chart being built along this tutorial will be powered by the <a href=\"https:\/\/www.anychart.com\">AnyChart<\/a> JavaScript charting library which is easy to use and flexible and has a detailed <a href=\"https:\/\/docs.anychart.com\" target=\"_blank\" rel=\"nofollow\">documentation<\/a> with many samples. So, include its base module from the CDN right there.<\/p>\n<p>The chart code itself will go to the <code>&lt;script&gt;<\/code> tag inside of the <code>&lt;body&gt;<\/code> section.<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;JavaScript Chart on COVID-19 Data&lt;\/title&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.7.1\/js\/anychart-base.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\" style=\"width: 100%; height: 100%;\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\n      \/\/ The chart code will be written here.\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h3>3. Set the\u00a0data<\/h3>\n<p>Third, you should add the data you want to visualize.<\/p>\n<p>Basically, there are <a href=\"https:\/\/docs.anychart.com\/Working_with_Data\/Supported_Data_Formats\" target=\"_blank\" rel=\"nofollow\">many ways<\/a> to load data to charts. This tutorial describes how to create a simple chart so let&#8217;s arrange simple data.<\/p>\n<p>Currently, the novel coronavirus pandemic is the number one topic all over the world. Let&#8217;s make a JavaScript column chart visualizing the <strong>top 10 countries with the highest number of confirmed COVID-19 cases as of yesterday, April 5, 2020<\/strong>. Data will be taken from the <a href=\"https:\/\/github.com\/CSSEGISandData\/COVID-19\" target=\"_blank\" rel=\"nofollow\">data repository<\/a> of the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE) known to contain trustful statistics. According to it, the list of top 10 countries by confirmed COVID-19 cases as of April 5 looks as follows:<\/p>\n<blockquote><p><em><strong>Country\u200a\u2014\u200aNumber of cases<\/strong><\/em><\/p>\n<p><em>United States\u200a\u2014\u200a337,072<\/em><br \/>\n<em>Spain\u200a\u2014\u200a131,646<\/em><br \/>\n<em>Italy\u200a\u2014\u200a128,948<\/em><br \/>\n<em>Germany\u200a\u2014\u200a100,123<\/em><br \/>\n<em>France\u200a\u2014\u200a93,773<\/em><br \/>\n<em>China\u200a\u2014\u200a82,602<\/em><br \/>\n<em>Iran\u200a\u2014\u200a58,226<\/em><br \/>\n<em>United Kingdom\u200a\u2014\u200a48,436<\/em><br \/>\n<em>Turkey\u200a\u2014\u200a27,069<\/em><br \/>\n<em>Switzerland\u200a\u2014\u200a21,100<\/em><\/p><\/blockquote>\n<p>Let&#8217;s convert this data into a JavaScript object with a data array and header settings:<\/p>\n<pre><code class=\"js\">var data = {\r\n  header: [\"Country\", \"Number of cases\"],\r\n  rows: [\r\n    [\"United States\", 337072],\r\n    [\"Spain\", 131646],\r\n    [\"Italy\", 128948],\r\n    [\"Germany\", 100123],\r\n    [\"France\", 93773],\r\n    [\"China\", 82602],\r\n    [\"Iran\", 58226],\r\n    [\"United Kingdom\", 48436],\r\n    [\"Turkey\", 27069],\r\n    [\"Switzerland\", 21100]\r\n]};<\/code><\/pre>\n<h3>4. Code the\u00a0chart<\/h3>\n<p>Finally, now that you&#8217;ve got a page, scripts and data, you are all set for the final step\u200a\u2014\u200astart coding.<\/p>\n<p>Remember to include the chart code inside of the <code>&lt;script&gt;<\/code> tag in the <code>&lt;body&gt;<\/code> section of the HTML page.<\/p>\n<p>To begin with, add the <code>anychart.onDocumentReady()<\/code> function so the chart loads when the page is ready:<\/p>\n<pre><code class=\"html\">&lt;script&gt;\r\n  anychart.onDocumentReady(function() {\r\n    \/\/ The main chart code goes here.\r\n  });\r\n&lt;\/script&gt;<\/code><\/pre>\n<p>Then, add the data:<\/p>\n<pre><code class=\"js\">anychart.onDocumentReady(function() {\r\n\r\n  var data = {\r\n    header: [\"Country\", \"Number of cases\"],\r\n    rows: [\r\n      [\"United States\", 337072],\r\n      [\"Spain\", 131646],\r\n      [\"Italy\", 128948],\r\n      [\"Germany\", 100123],\r\n      [\"France\", 93773],\r\n      [\"China\", 82602],\r\n      [\"Iran\", 58226],\r\n      [\"United Kingdom\", 48436],\r\n      [\"Turkey\", 27069],\r\n      [\"Switzerland\", 21100]\r\n  ]};\r\n\r\n});<\/code><\/pre>\n<p>Next, define the chart type. (You can find the full list of the chart types available in AnyChart out of the box in the list of <a href=\"https:\/\/docs.anychart.com\/Quick_Start\/Supported_Charts_Types\" target=\"_blank\" rel=\"nofollow\">Supported Charts<\/a>.) In this chart, the column chart type is to be picked, with the data specified in the <code>data<\/code> variable:<\/p>\n<pre><code class=\"js\">\/\/ create the column chart\r\nvar chart = anychart.column();\r\n \r\n\/\/ add the data\r\nchart.data(data);<\/code><\/pre>\n<p>Let&#8217;s also add a title for the chart to show what it is about at a glance:<\/p>\n<pre><code class=\"js\">chart.title(\"Top 10 Countries with the Most Cases of COVID-19\");<\/code><\/pre>\n<p>The last thing to do is to set the container and command to draw the chart:<\/p>\n<pre><code class=\"js\">\/\/ set the container\r\nchart.container(\"container\");\r\n\r\n\/\/ draw the chart\r\nchart.draw();<\/code><\/pre>\n<p><strong>Done! Check out the result below.<\/strong> Hover over the columns and tooltips with the exact numbers will show up:<\/p>\n<p><iframe sandbox=\"allow-scripts allow-pointer-lock allow-same-origin\n                 allow-popups allow-modals allow-forms\" frameBorder=\"0\" class=\"anychart-embed anychart-embed-XAX1zauA\"\n        allowtransparency=\"true\" allowfullscreen=\"true\"\n        src=\"https:\/\/playground.anychart.com\/Kn38qBun\/iframe\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-XAX1zauA{width:100%;height:500px;}\");\n})();<\/script><\/p>\n<p>For your convenience, this JS\/HTML5 column chart is <a href=\"https:\/\/playground.anychart.com\/XAX1zauA\/\" target=\"_blank\" rel=\"nofollow\">available on AnyChart Playground<\/a> where you can play with the code, visualization, and interactivity to continue mastering this technique on your own. Just in case, the full HTML\/JS code is also provided below:<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;JavaScript Chart on COVID-19 Data&lt;\/title&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.7.1\/js\/anychart-base.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\" style=\"width: 100%; height: 100%;\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\nanychart.onDocumentReady(function() {\r\n\r\n  \/\/ create the data\r\n  var data = {\r\n    header: [\"Country\", \"Number of cases\"],\r\n    rows: [\r\n      [\"United States\", 337072],\r\n      [\"Spain\", 131646],\r\n      [\"Italy\", 128948],\r\n      [\"Germany\", 100123],\r\n      [\"France\", 93773],\r\n      [\"China\", 82602],\r\n      [\"Iran\", 58226],\r\n      [\"United Kingdom\", 48436],\r\n      [\"Turkey\", 27069],\r\n      [\"Switzerland\", 21100]\r\n  ]};\r\n \r\n  \/\/ create the column chart\r\n  var chart = anychart.column();\r\n \r\n  \/\/ add the data\r\n  chart.data(data);\r\n \r\n  \/\/ set the chart title\r\n  chart.title(\"Top 10 Countries with the Most Cases of COVID-19\");\r\n \r\n  \/\/ set the container\r\n  chart.container(\"container\");\r\n\r\n  \/\/ draw the chart\r\n  chart.draw();\r\n \r\n});\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<p>Looks pretty simple and neat, doesn&#8217;t it?<\/p>\n<p>Now, let&#8217;s see how to modify such a JavaScript column chart in case you want it.<\/p>\n<h2>Chart Customization<\/h2>\n<h3>Switch the chart type (to horizontal bars)<\/h3>\n<p>There are many <a href=\"https:\/\/www.anychart.com\/chartopedia\/usage-type\/\">chart types<\/a> for data visualization out there, and sometimes you may need to change one you picked first for a better, more insightful view of your data.<\/p>\n<p>For example, here&#8217;s how you can switch the column chart type to the bar chart type\u200a\u2014\u200atransform (vertical) columns into (horizontal) bars\u200a\u2014\u200aby simply changing <code>anychart.column()<\/code> to <code>anychart.bar()<\/code>:<\/p>\n<pre><code class=\"js\">var chart = anychart.bar();<\/code><\/pre>\n<p>That&#8217;s it! Now this JavaScript column chart is a JS bar chart \u2014\u200a<a href=\"https:\/\/playground.anychart.com\/ocNPbTvy\/\" target=\"_blank\" rel=\"nofollow\">check it out on the playground<\/a>:<\/p>\n<p><iframe sandbox=\"allow-scripts allow-pointer-lock allow-same-origin\n                 allow-popups allow-modals allow-forms\" frameBorder=\"0\" class=\"anychart-embed anychart-embed-ocNPbTvy\"\n        allowtransparency=\"true\" allowfullscreen=\"true\"\n        src=\"https:\/\/playground.anychart.com\/zSqwbl3D\/iframe\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-ocNPbTvy{width:100%;height:500px;}\");\n})();<\/script><\/p>\n<h3>Set a\u00a0theme<\/h3>\n<p>You can customize the look of your charts in a number of ways. However, to quickly change the appearance, it may be convenient to choose from pre-built <a href=\"https:\/\/docs.anychart.com\/Appearance_Settings\/Themes\" target=\"_blank\" rel=\"nofollow\">chart design themes<\/a>.<\/p>\n<p>For example, let&#8217;s pick one called Dark Turquoise. This can be done in two quick steps.<\/p>\n<p>First, reference it in the <code>&lt;script&gt;<\/code> tag inside of the <code>&lt;head&gt;<\/code> section:<\/p>\n<pre><code class=\"html\">&lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.7.1\/themes\/dark_turquoise.min.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>Second, apply it to the chart like this:<\/p>\n<pre><code class=\"js\">anychart.theme(anychart.themes.darkTurquoise);<\/code><\/pre>\n<p><a href=\"https:\/\/playground.anychart.com\/n12VY4jr\/\" target=\"_blank\" rel=\"nofollow\">Here&#8217;s how it looks now<\/a>:<\/p>\n<p><iframe sandbox=\"allow-scripts allow-pointer-lock allow-same-origin\n                 allow-popups allow-modals allow-forms\" frameBorder=\"0\" class=\"anychart-embed anychart-embed-n12VY4jr\"\n        allowtransparency=\"true\" allowfullscreen=\"true\"\n        src=\"https:\/\/playground.anychart.com\/n12VY4jr\/iframe\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-n12VY4jr{width:100%;height:500px;}\");\n})();<\/script><\/p>\n<h3>Enable grid\u00a0lines<\/h3>\n<p>It is not too easy to intuitively recognize the values represented by the bar lines in such a data visualization. So you may want to add grid lines to facilitate the perception.<\/p>\n<p>Before actually enabling the grid, let&#8217;s determine the desired tick intervals\u200a\u2014\u200aon every 50,000 cases, with minor ticks on every 10,000. Then, simply add the corresponding grid lines.<\/p>\n<pre><code class=\"js\">\/\/ add ticks\r\nchart.yScale().ticks().interval(50000);\r\nchart.yScale().minorTicks().interval(10000);\r\n\/\/ add grid lines\r\nchart.yGrid().enabled(true);\r\nchart.yMinorGrid().enabled(true);<\/code><\/pre>\n<p>Note that in AnyChart, bar charts are implemented as <a href=\"https:\/\/docs.anychart.com\/Basic_Charts\/Vertical\/Overview\" target=\"_blank\" rel=\"nofollow\">vertical<\/a> JavaScript column charts. As a result, the horizontal axis in bar charts is Y, and the vertical axis in bar charts is X. So don&#8217;t get confused with what you see in the code snippet above\u200a\u2014\u200aeverything is absolutely correct there.<\/p>\n<p>Here&#8217;s the <a href=\"https:\/\/playground.anychart.com\/0zSQuUJg\/\" target=\"_blank\" rel=\"nofollow\">result of this step<\/a>:<\/p>\n<p><iframe sandbox=\"allow-scripts allow-pointer-lock allow-same-origin\n                 allow-popups allow-modals allow-forms\" frameBorder=\"0\" class=\"anychart-embed anychart-embed-0zSQuUJg\"\n        allowtransparency=\"true\" allowfullscreen=\"true\"\n        src=\"https:\/\/playground.anychart.com\/0zSQuUJg\/iframe\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-0zSQuUJg{width:100%;height:500px;}\");\n})();<\/script><\/p>\n<h3>Turn on the animation<\/h3>\n<p>Finally, let&#8217;s turn on the bar chart animation on load as a simple, yet cool visual effect:<\/p>\n<pre><code class=\"js\">chart.animation(true);<\/code><\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10081\" src=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/js-html5-bar-chart-animation-final.gif\" alt=\"Animated JS bar chart showing the latest data on the top countries by the number of confirmed COVID-19 cases, HTML5\" width=\"75%\" \/><\/p>\n<p>It&#8217;s the <a href=\"https:\/\/playground.anychart.com\/YMW1r6LE\/\" target=\"_blank\" rel=\"nofollow\">final chart for this tutorial<\/a>\u200a\u2014\u200athe result of all the described transformations implemented one by one! You can easily integrate it into your web project. Remove all the comments and you&#8217;ll see that it is created in <strong>less than 30 lines of pure JavaScript code<\/strong>.<\/p>\n<p>Here&#8217;s the interactive version of this final JS bar chart we&#8217;ve come to from the basic JS column chart, with the full code below:<\/p>\n<p><iframe sandbox=\"allow-scripts allow-pointer-lock allow-same-origin\n                 allow-popups allow-modals allow-forms\" frameBorder=\"0\" class=\"anychart-embed anychart-embed-YMW1r6LE\"\n        allowtransparency=\"true\" allowfullscreen=\"true\"\n        src=\"https:\/\/playground.anychart.com\/YMW1r6LE\/iframe\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-YMW1r6LE{width:100%;height:500px;}\");\n})();<\/script><\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;JavaScript Chart on COVID-19 Data&lt;\/title&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.7.1\/js\/anychart-base.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdn.anychart.com\/releases\/8.7.1\/themes\/dark_turquoise.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;div id=\"container\" style=\"width: 100%; height: 100%;\"&gt;&lt;\/div&gt;\r\n    &lt;script&gt;\r\nanychart.onDocumentReady(function() {\r\n\r\n  \/\/ create the data\r\n  var data = {\r\n    header: [\"Country\", \"Number of cases\"],\r\n    rows: [\r\n      [\"United States\", 337072],\r\n      [\"Spain\", 131646],\r\n      [\"Italy\", 128948],\r\n      [\"Germany\", 100123],\r\n      [\"France\", 93773],\r\n      [\"China\", 82602],\r\n      [\"Iran\", 58226],\r\n      [\"United Kingdom\", 48436],\r\n      [\"Turkey\", 27069],\r\n      [\"Switzerland\", 21100]\r\n  ]};\r\n \r\n  \/\/ create the chart\r\n  var chart = anychart.bar();\r\n\r\n  \/\/ set the theme\r\n  anychart.theme(anychart.themes.darkTurquoise);\r\n \r\n  \/\/ add the data\r\n  chart.data(data);\r\n \r\n  \/\/ set the chart title\r\n  chart.title(\"Top 10 Countries with the Most Cases of COVID-19\");\r\n\r\n  \/\/ add tick intervals\r\n  chart.yScale().ticks().interval(50000);\r\n  chart.yScale().minorTicks().interval(10000);\r\n  \/\/ add grid lines\r\n  chart.yGrid().enabled(true);\r\n  chart.yMinorGrid().enabled(true);\r\n\r\n  \/\/ turn on the chart animation\r\n  chart.animation(true);\r\n \r\n  \/\/ set the container\r\n  chart.container(\"container\");\r\n\r\n  \/\/ draw the chart\r\n  chart.draw();\r\n \r\n});\r\n    &lt;\/script&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>As you see, creating JavaScript column and bar charts is not difficult at all. If you want to know how to make some further modifications to the data visualizations from this tutorial or create other charts, visit the <a href=\"https:\/\/docs.anychart.com\" target=\"_blank\" rel=\"nofollow\">documentation<\/a> and get inspired by demos in the <a href=\"https:\/\/www.anychart.com\/products\/anychart\/gallery\/\">gallery<\/a>.<\/p>\n<p>Feel free to ask questions if any.<\/p>\n<hr>\n<p><strong><em>See also: <a href=\"https:\/\/www.anychart.com\/blog\/2017\/10\/25\/javascript-bar-chart-tutorial\/\">Creating a JavaScript Bar Chart<\/a><\/em><\/strong><em><\/p>\n<hr>\n<p><!-- SyntaxHighlighter --><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/default.min.css\"><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/atom-one-light.min.css\"><script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/highlight.min.js\"><\/script><script>hljs.initHighlightingOnLoad();<\/script><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Need compelling JS charts for your website or app? Start with the basics! Complete this quick data visualization tutorial and you&#8217;ll learn how to easily create JavaScript column and bar charts that will look great in any HTML5-based project, allowing for easy comparisons. Chart examples to be built and demonstrated in this tutorial will be [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,23,13,279,4],"tags":[53,70,71,260,35,284,127,258,85,1766,1823,1773,1771,1772,1819,1800,1801,1803,1804,1769,471,266,54,256,844,32,55,144,36,907,141,249,81,57,1238,99,58,65,56,1768,459,30,172,1767],"class_list":["post-10080","post","type-post","status-publish","format-standard","hentry","category-anychart-charting-component","category-html5","category-javascript","category-javascript-chart-tutorials","category-tips-and-tricks","tag-anychart","tag-bar-chart","tag-bar-charts","tag-best-data-visualization-examples","tag-business-intelligence","tag-chart-examples","tag-chart-types","tag-charts","tag-column-charts","tag-coronavirus","tag-coronavirus-cases","tag-coronavirus-charts","tag-coronavirus-data","tag-coronavirus-data-visualization","tag-coronavirus-outbreak","tag-coronavirus-pandemic","tag-coronavirus-pandemic-charts","tag-coronavirus-pandemic-data","tag-coronavirus-pandemic-data-visualization","tag-covid-19","tag-data-analysis","tag-data-analytics","tag-data-visualization","tag-data-visualization-examples","tag-data-visualization-tutorial","tag-html5","tag-html5-charts","tag-infographics","tag-javascript","tag-javascript-chart-tutorial","tag-javascript-charting","tag-javascript-charting-api","tag-javascript-charting-library","tag-javascript-charts","tag-javascript-graph","tag-javascript-library","tag-js-chart","tag-js-charting","tag-js-charts","tag-novel-coronavirus","tag-statistics","tag-tips-and-tricks","tag-tutorial","tag-wuhan-coronavirus","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Column &amp; Bar Charts: How to Create and Customize Them<\/title>\n<meta name=\"description\" content=\"Do you have data to compare, looking for a way to effectively visualize it for a website or app? Learn how to make JavaScript column &amp; bar charts. Tutorial.\" \/>\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.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating JavaScript Column &amp; Bar Charts on COVID-19\u00a0Data\" \/>\n<meta property=\"og:description\" content=\"Do you have data to compare? Learn how to make JavaScript column or bar charts to effectively visualize it for a website or app. Tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\" \/>\n<meta property=\"og:site_name\" content=\"AnyChart News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AnyCharts\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-06T11:21:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-13T09:16:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\" \/>\n<meta name=\"author\" content=\"Jay Stevenson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Creating JavaScript Column &amp; Bar Charts on COVID-19\u00a0Data\" \/>\n<meta name=\"twitter:description\" content=\"Do you have data to compare? Learn how to make JavaScript column or bar charts to effectively visualize it for a website or app. Tutorial.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\" \/>\n<meta name=\"twitter:creator\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:site\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jay Stevenson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\"},\"author\":{\"name\":\"Jay Stevenson\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44\"},\"headline\":\"Creating JavaScript Column and Bar Charts on COVID-19\u00a0Data\",\"datePublished\":\"2020-04-06T11:21:14+00:00\",\"dateModified\":\"2022-08-13T09:16:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\"},\"wordCount\":1125,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\",\"keywords\":[\"AnyChart\",\"bar chart\",\"bar charts\",\"best data visualization examples\",\"Business Intelligence\",\"chart examples\",\"chart types\",\"charts\",\"column charts\",\"coronavirus\",\"coronavirus cases\",\"coronavirus charts\",\"coronavirus data\",\"coronavirus data visualization\",\"coronavirus outbreak\",\"coronavirus pandemic\",\"coronavirus pandemic charts\",\"coronavirus pandemic data\",\"coronavirus pandemic data visualization\",\"COVID-19\",\"data analysis\",\"data analytics\",\"Data Visualization\",\"data visualization examples\",\"data visualization tutorial\",\"HTML5\",\"html5 charts\",\"infographics\",\"JavaScript\",\"javascript chart tutorial\",\"javascript charting\",\"javascript charting api\",\"JavaScript charting library\",\"javascript charts\",\"javascript graph\",\"JavaScript library\",\"js chart\",\"js charting\",\"js charts\",\"novel coronavirus\",\"statistics\",\"Tips and tricks\",\"tutorial\",\"Wuhan coronavirus\"],\"articleSection\":[\"AnyChart Charting Component\",\"HTML5\",\"JavaScript\",\"JavaScript Chart Tutorials\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\",\"url\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\",\"name\":\"JavaScript Column & Bar Charts: How to Create and Customize Them\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\",\"datePublished\":\"2020-04-06T11:21:14+00:00\",\"dateModified\":\"2022-08-13T09:16:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44\"},\"description\":\"Do you have data to compare, looking for a way to effectively visualize it for a website or app? Learn how to make JavaScript column & bar charts. Tutorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage\",\"url\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\",\"contentUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png\",\"width\":1200,\"height\":637},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.anychart.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating JavaScript Column and Bar Charts on COVID-19\u00a0Data\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\",\"url\":\"https:\/\/www.anychart.com\/blog\/\",\"name\":\"AnyChart News\",\"description\":\"AnyChart JS Charts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.anychart.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44\",\"name\":\"Jay Stevenson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c544645e5f5fe1459f98921f88733ff8901710c63ddf0b4bc1ab9f61c2eb2470?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c544645e5f5fe1459f98921f88733ff8901710c63ddf0b4bc1ab9f61c2eb2470?s=96&r=g\",\"caption\":\"Jay Stevenson\"},\"url\":\"https:\/\/www.anychart.com\/blog\/author\/jasonlee\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Column & Bar Charts: How to Create and Customize Them","description":"Do you have data to compare, looking for a way to effectively visualize it for a website or app? Learn how to make JavaScript column & bar charts. Tutorial.","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.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/","og_locale":"en_US","og_type":"article","og_title":"Creating JavaScript Column & Bar Charts on COVID-19\u00a0Data","og_description":"Do you have data to compare? Learn how to make JavaScript column or bar charts to effectively visualize it for a website or app. Tutorial.","og_url":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/","og_site_name":"AnyChart News","article_publisher":"https:\/\/www.facebook.com\/AnyCharts","article_published_time":"2020-04-06T11:21:14+00:00","article_modified_time":"2022-08-13T09:16:20+00:00","og_image":[{"url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","type":"","width":"","height":""}],"author":"Jay Stevenson","twitter_card":"summary_large_image","twitter_title":"Creating JavaScript Column & Bar Charts on COVID-19\u00a0Data","twitter_description":"Do you have data to compare? Learn how to make JavaScript column or bar charts to effectively visualize it for a website or app. Tutorial.","twitter_image":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","twitter_creator":"@AnyChart","twitter_site":"@AnyChart","twitter_misc":{"Written by":"Jay Stevenson","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#article","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/"},"author":{"name":"Jay Stevenson","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44"},"headline":"Creating JavaScript Column and Bar Charts on COVID-19\u00a0Data","datePublished":"2020-04-06T11:21:14+00:00","dateModified":"2022-08-13T09:16:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/"},"wordCount":1125,"commentCount":0,"image":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","keywords":["AnyChart","bar chart","bar charts","best data visualization examples","Business Intelligence","chart examples","chart types","charts","column charts","coronavirus","coronavirus cases","coronavirus charts","coronavirus data","coronavirus data visualization","coronavirus outbreak","coronavirus pandemic","coronavirus pandemic charts","coronavirus pandemic data","coronavirus pandemic data visualization","COVID-19","data analysis","data analytics","Data Visualization","data visualization examples","data visualization tutorial","HTML5","html5 charts","infographics","JavaScript","javascript chart tutorial","javascript charting","javascript charting api","JavaScript charting library","javascript charts","javascript graph","JavaScript library","js chart","js charting","js charts","novel coronavirus","statistics","Tips and tricks","tutorial","Wuhan coronavirus"],"articleSection":["AnyChart Charting Component","HTML5","JavaScript","JavaScript Chart Tutorials","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/","url":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/","name":"JavaScript Column & Bar Charts: How to Create and Customize Them","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage"},"image":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","datePublished":"2020-04-06T11:21:14+00:00","dateModified":"2022-08-13T09:16:20+00:00","author":{"@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44"},"description":"Do you have data to compare, looking for a way to effectively visualize it for a website or app? Learn how to make JavaScript column & bar charts. Tutorial.","breadcrumb":{"@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#primaryimage","url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","contentUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2020\/04\/javascript-bar-chart-covid-19-data-visualization-tutorial-blog.png","width":1200,"height":637},{"@type":"BreadcrumbList","@id":"https:\/\/www.anychart.com\/blog\/2020\/04\/06\/javascript-column-bar-charts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.anychart.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating JavaScript Column and Bar Charts on COVID-19\u00a0Data"}]},{"@type":"WebSite","@id":"https:\/\/www.anychart.com\/blog\/#website","url":"https:\/\/www.anychart.com\/blog\/","name":"AnyChart News","description":"AnyChart JS Charts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.anychart.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/72c57df865ef152aa12d353a89260a44","name":"Jay Stevenson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c544645e5f5fe1459f98921f88733ff8901710c63ddf0b4bc1ab9f61c2eb2470?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c544645e5f5fe1459f98921f88733ff8901710c63ddf0b4bc1ab9f61c2eb2470?s=96&r=g","caption":"Jay Stevenson"},"url":"https:\/\/www.anychart.com\/blog\/author\/jasonlee\/"}]}},"_links":{"self":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/10080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/comments?post=10080"}],"version-history":[{"count":25,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/10080\/revisions"}],"predecessor-version":[{"id":15481,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/10080\/revisions\/15481"}],"wp:attachment":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/media?parent=10080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/categories?post=10080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/tags?post=10080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}