Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
charts

21 Articles
{
,

}
A circular pit chart pin three slices differentiated by different colors. Sparkle emoji surrounds the chart.
Direct link to the article Trying to Make the Perfect Pie Chart in CSS
charts data visualization

Trying to Make the Perfect Pie Chart in CSS

Can we make pie chart that's semantic, with flexible markup, and avoids using a JavaScript library? Here's how I tackled it.
Juan Diego Rodríguez on Feb 9, 2026
Horizontal bar chart illustration. Bars are pill-shaped with white text labels indicating percentage. Dark gray background.
Direct link to the article CSS Bar Charts Using Modern Functions
charts data visualization

CSS Bar Charts Using Modern Functions

CSS-only bar charts are one of those things we've tackled a bunch of times in different ways. But how can modern CSS features finally make it not only trivial, but fun?
Preethi on Feb 5, 2026
Direct link to the article Overlapping Bar Charts
charts

Overlapping Bar Charts

As the name suggests, overlapping charts visualize two different sets of data in a single diagram. The idea is that the overlapping bars allow us to compare data, say, year-over-year. They are also useful for things like tracking progress for …

Saleh Mubashar on Sep 7, 2022
Direct link to the article Making Mermaid Diagrams in Markdown
charts markdown

Making Mermaid Diagrams in Markdown

Mermaid diagrams and flowcharts have been gaining traction, especially with GitHub’s announcement that they are natively supported in Markdown. Let’s take a look at what they are, how to use them, and just as importantly: why.

Just like you …

Paul Esch-Laurent on Apr 18, 2022
Direct link to the article How to Create CSS Charts With Interesting Shapes, Glyphs and Emoji
charts css shapes emoji glyphs SVG

How to Create CSS Charts With Interesting Shapes, Glyphs and Emoji

Let’s forego the usual circles and bars we typically see used in charts for more eccentric shapes. With online presentations more and more common today, a quick way to spruce up your web slides and make them stand out is …

Preethi on Jun 21, 2021
Direct link to the article How to Make an Area Chart With CSS
charts clip-path data visualization flexbox

How to Make an Area Chart With CSS

You might know a few ways to create charts with pure CSS. Some of them are covered here on CSS-Tricks, and many others can be found on CodePen, but I haven’t seen many examples of “area charts” (imagine …

Rami Yushuvaev on Dec 2, 2020 Updated on Dec 7, 2020
Direct link to the article How to Make a Line Chart With CSS
charts custom properties graph

How to Make a Line Chart With CSS

Line,  bar, and pie charts are the bread and butter of dashboards and are the basic components of any data visualization toolkit. Sure, you can use SVG or a JavaScript chart library like Chart.js or a complex tool like D3…

Marshall Humphries on Mar 11, 2020
Direct link to the article Making a Chart? Try Using Mobx State Tree to Power the Data
charts data visualization

Making a Chart? Try Using Mobx State Tree to Power the Data

Who loves charts? Everyone, right? There are lots of ways to create them, including a number of libraries. There’s D3.js, Chart.js, amCharts, Highcharts, and Chartist, to name only a few of many, many options.

But …

Ted Littledale on Nov 5, 2019
Direct link to the article The Many Ways of Getting Data Into Charts
api charts data visualization

The Many Ways of Getting Data Into Charts

Data is available everywhere nowadays, whether it’s in a plain text file, a REST API, an online Google sheet… you name it! It’s that variety of context that makes building graphs more than simply having a database in your local …

Dan Englishby on May 1, 2019
  • 1
  • 2
  • 3
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top