{"id":9976,"date":"2024-03-03T10:31:00","date_gmt":"2024-03-03T10:31:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9976"},"modified":"2024-03-04T08:31:09","modified_gmt":"2024-03-04T03:31:09","slug":"css-vertical-stacked-bar-chart","status":"publish","type":"post","link":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/","title":{"rendered":"CSS Vertical Stacked Bar Chart"},"content":{"rendered":"<p>This code creates a vertical stacked bar chart using CSS and jQuery. It visually represents data percentages in bars. The JavaScript part adjusts the bar heights based on the data provided, enabling easy data visualization. This chart style is helpful for showcasing proportional data in a visually appealing manner without using traditional chart libraries.<\/p>\n<p>It&#8217;s handy for <a href=\"https:\/\/codehim.com\/carousel\/stories-slider-in-html-css-js\/\" target=\"_blank\" rel=\"noopener\">showcasing progress<\/a>, comparisons, or any data with percentages in a visually engaging way. This method offers a simple, lightweight solution without relying on extensive chart libraries, making it easy to implement and customize.<\/p>\n<h2>How to Create CSS Vertical Stacked Bar Chart<\/h2>\n<p>1. First of all, load the Google Fonts and <a href=\"https:\/\/jquery.com\" target=\"_blank\" rel=\"noopener\">jQuery<\/a> by adding the following CDN links into the head tag of your webpage.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link href='https:\/\/fonts.googleapis.com\/css?family=Open+Sans:300' rel='stylesheet' type='text\/css'&gt;\r\n&lt;script src='\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/2.1.3\/jquery.min.js'&gt;&lt;\/script&gt;<\/pre>\n<p>2. Within the body section, create a container element to hold the chart. Use nested <code>div<\/code> or <code>section<\/code> elements to structure the bars. Assign classes to elements for styling and manipulation purposes.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container\"&gt;\r\n  &lt;h1&gt;Stacked Bar Charts&lt;\/h1&gt;\r\n  &lt;p&gt;A nice and simple stacked bar chart with some CSS &amp;amp; some Jquery.&lt;\/p&gt;\r\n  \r\n  &lt;!-- BEGIN CIRCLE CODE --&gt;\r\n  &lt;section class=\"section-stacked-bars\"&gt;\r\n\r\n&lt;section class=\"report report-usage-daily\" id=\"reveal-usage\"&gt;\r\n\t&lt;ul class=\"vertical-bars\"&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"20\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;20%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;80%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"40\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;40%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;60%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"60\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;60%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;40%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"80\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;80%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;40%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"100\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;100%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;0%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"60\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;60%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;40%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"40\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;40%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;60%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t\t&lt;li class=\"bar\"&gt;\r\n\t\t\t&lt;span class=\"usage\" data-usage=\"0\"&gt;\r\n\t\t\t\t&lt;span class=\"usage-value\"&gt;\r\n\t\t\t\t\t&lt;small&gt;0%&lt;\/small&gt;\r\n\t\t\t\t&lt;\/span&gt;\r\n\t\t\t\t&lt;small class=\"legend\"&gt;100%&lt;\/small&gt;\r\n\t\t\t&lt;\/span&gt;\r\n\t\t&lt;\/li&gt;\r\n\t&lt;\/ul&gt;\r\n&lt;\/section&gt;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t&lt;\/section&gt;\r\n  &lt;!-- END CIRCLE CODE --&gt;\r\n  \r\n&lt;\/div&gt;<\/pre>\n<p>3. Define the CSS styles for the chart elements. Customize the colors, dimensions, positions, and typography based on your design preferences. Pay attention to classes like <code>.bar<\/code>, <code>.usage<\/code>, and <code>.usage-value<\/code> for styling the bars.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.vertical-bars .bar .usage {\r\n  display: block;\r\n  background: #e67e22;\r\n  height: 250px;\r\n  width: 40px;\r\n  position: relative;\r\n  font-size: small;\r\n}\r\n.vertical-bars .bar .usage small {\r\n  position: absolute;\r\n  top: 0;\r\n  right: -35px;\r\n}\r\n.vertical-bars .bar .usage-value {\r\n  background: #d35400;\r\n  display: block;\r\n  position: absolute;\r\n  bottom: 0;\r\n  left: 0;\r\n  right: 0;\r\n  height: 80%;\r\n}\r\n.vertical-bars .bar .usage-value small {\r\n  background: #2c3e50;\r\n  z-index: 5;\r\n}\r\n\r\nbody {\r\n  background: #2c3e50;\r\n}\r\n\r\n.container {\r\n  width: 940px;\r\n  margin: 0 auto;\r\n  color: #ecf0f1;\r\n  font-family: \"Open Sans\", sans-serif;\r\n  text-align: center;\r\n}\r\n\r\nh1 {\r\n  text-transform: uppercase;\r\n}\r\n\r\np {\r\n  margin-bottom: 48px;\r\n}\r\n\r\na {\r\n  color: #ecf0f1;\r\n}\r\n\r\nul {\r\n  margin: 0 0 0 -10px;\r\n  padding: 0;\r\n}\r\nul li {\r\n  display: inline-block;\r\n  margin-left: 10px;\r\n  width: 10%;\r\n  text-align: left;\r\n}<\/pre>\n<p>4. Finally, add the following jQuery script to manipulate the chart elements dynamically. Target the data attributes within the HTML elements and adjust the height of the bars accordingly. Utilize <code>$(document).ready()<\/code> to ensure the DOM is fully loaded before executing the script.<\/p>\n<pre class=\"prettyprint linenums lang-js\">$(document).ready(function() {\r\n\tvar graph = $('.usage');\r\n\t$.each(graph, function() {\r\n\t\r\n\t\tvar usage = $(this).attr('data-usage');\r\n\t\t$(this).children('.usage-value').css({\r\n\t\t\t'height': + usage +'%',\r\n\t\t});\r\n\t\t\r\n\t});\r\n});<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Vertical Stacked Bar Chart using jQuery and CSS. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates a vertical stacked bar chart using CSS and jQuery. It visually represents data percentages in bars. The&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9985,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[111],"tags":[],"class_list":["post-9976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chart-graph"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CSS Vertical Stacked Bar Chart &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Vertical Stacked Bar Chart &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-03T10:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-04T03:31:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\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:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"CSS Vertical Stacked Bar Chart\",\"datePublished\":\"2024-03-03T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\"},\"wordCount\":254,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png\",\"articleSection\":[\"Chart &amp; Graph\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\",\"url\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\",\"name\":\"CSS Vertical Stacked Bar Chart &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png\",\"datePublished\":\"2024-03-03T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:09+00:00\",\"description\":\"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png\",\"width\":1280,\"height\":960,\"caption\":\"CSS Vertical Stacked Bar Chart\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chart &amp; Graph\",\"item\":\"https:\/\/codehim.com\/category\/chart-graph\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CSS Vertical Stacked Bar Chart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Vertical Stacked Bar Chart &#8212; CodeHim","description":"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.","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:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/","og_locale":"en_US","og_type":"article","og_title":"CSS Vertical Stacked Bar Chart &#8212; CodeHim","og_description":"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-03-03T10:31:00+00:00","article_modified_time":"2024-03-04T03:31:09+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"CSS Vertical Stacked Bar Chart","datePublished":"2024-03-03T10:31:00+00:00","dateModified":"2024-03-04T03:31:09+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/"},"wordCount":254,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png","articleSection":["Chart &amp; Graph"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/","url":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/","name":"CSS Vertical Stacked Bar Chart &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png","datePublished":"2024-03-03T10:31:00+00:00","dateModified":"2024-03-04T03:31:09+00:00","description":"Here is a free code snippet to create a CSS Vertical Stacked Bar Chart. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/CSS-Vertical-Stacked-Bar-Chart.png","width":1280,"height":960,"caption":"CSS Vertical Stacked Bar Chart"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/chart-graph\/css-vertical-stacked-bar-chart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Chart &amp; Graph","item":"https:\/\/codehim.com\/category\/chart-graph\/"},{"@type":"ListItem","position":3,"name":"CSS Vertical Stacked Bar Chart"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":919,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9976"}],"version-history":[{"count":1,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9976\/revisions"}],"predecessor-version":[{"id":11312,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9976\/revisions\/11312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9985"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}