16 Usable CSS Graph and Bar Chart Tutorials and Techniques
Have you ever even tried to create your own CSS graph? If you have, you will know how hard it is. Using Flash is one way to go, but you just can’t beat a beautifully crafted CSS Graph. Have a look at these tutorials and techniques.
PHP and CSS- A Simple Graph
Link : PHP and CSS- A Simple Graph.
Tagline : Here’s an easy way to display a simple percentage graph using PHP to work out the percentages and do the maths and CSS to display the data on our page.
Demo : View the demo.
Vertical Bar Graphs using CSS and PHP

Link : Vertical Bar Graphs using CSS and PHP.
Tagline : Who wants to use Excel to make a new graph each week? Using CSS and PHP you can create attractive bar graphs that are always up to date.
Demo : View the demo.
CSS For Bar Graphs
Link : CSS For Bar Graphs.
Tagline : The concept is simple, utilize the percentage width abilities of CSS to accurately portray a percentage bar graph.
Demo : View the demo.
Real World Bar Graphs (with some CSS)
Link : Real World Bar Graphs (with some CSS).
Tagline : We could’ve just gone with an “easy way” out and used existing component to produce the full graph images backend and just append to the page. However, this was opposing our goal of doing it neat and lightweight.
Demo : View the demo.
SAC – Simple accessible Charts
Link : SAC – Simple accessible Charts.
Tagline : Easy, fast and accessible way to display simple Data and beautify them with CSS. It needed some time and a little bit wired thinking, but It works.
Demo : View the demo.
An accessible bar chart
Link : An accessible bar chart.
Tagline : A bar is created using an image which is stretched to the appropriate size,bar widths are calculated relative to the largest value, value cells have a repeated background image which shows the vertical lines.
Demo : View the demo.
The Standards Way to Do Dynamic Data
Link : The Standards Way to Do Dynamic Data.
Tagline : By using a standardized set of web technologies, it is possible to produce interesting data visualizations that degrade gracefully in the face of browser inferiority. Through careful semantic crafting of our XHTML containers, clever use of CSS, and a splash JavaScript, we can build data visualizations that enhance our message and communicate better to our users.
Demo : View the demo.
Pure CSS Data Chart
Link : Pure CSS Data Chart.
Tagline : We could say that a chart is a two dimensional object. So, the best structural and semantical choice is definition list. Why? Well, for starter, it is a list of items. Although the list is linear, we could interpret definition titles (dt elements) as items on x axis and definition descriptions (dd elements) as values on y axis.
Demo : View the demo.
Line Graph
Link : Line Graph.
Tagline : This is a purely DHTML/ CSS based Line Graph script. It loads fast and blends in with the rest of the page. You can even use a transparent background for it.
Demo : View the demo.
Pure CSS/HTML Bullet Graph
Link : Pure CSS/HTML Bullet Graph.
Demo : View the demo.
Simple CSS Bar Graph
Link : Simple CSS Bar Graph.
Tagline : Here is a nice and simple way to create a basic horizontal bar graph utilizing very basic CSS: Perfect for illustrating statistics, donations, or anything else you can think of.
Demo : View the demo.
Creating a graph using percentage background
Link : Creating a graph using percentage background.
Demo : View the demo.
CSS Stacked Bar Graphs
Link : CSS Stacked Bar Graphs.
Demo : View the demo.
CSS Vertical Bar Graphs
Link : CSS Vertical Bar Graphs.
Tagline : Here is a fairly typical vertical bar graph showing a hypothetical set of quarterly data for, say, invoice and collection totals. The difference here is that the whole thing is a simple table and a few divs. Really.
Demo : View the demo.
Super simple CSS bars
Link : Super simple CSS bars.
Demo : View the demo.
CSS absolute positioning scatter plot
Link : CSS absolute positioning scatter plot.
Tagline : This graph is going to use CSS absolute positioning to draw the scatter plot on the page with no external graphics at all. Not only is the chart better (it iss clickable, has popups, it can be scaled), its also smaller and prettier.
Demo : View the demo.
You might also like…
7 Free CSS Editors, Which Is the Best? You Choose »
20 Very Useful CSS3 Tutorials »
There are 12 Comments › Leave your comment
Leave a Reply
33 Trackbacks
- 5 stupendously hyperbolic blogging headlines that will make you click fast
- dgtlx.com
- links for 2009-02-06 | Yostivanich.com
- JeremiahTolbert.com » Blog Archive » links for 2009-02-08
- Enlaces semanales que no he publicado (5) | Cosas sencillas
- Tuesday afternoon link serving [10th Feb '09] | Abhijat Saraswat
- w3feeds » Blog Archive » February - 2009 PART - 9 All latest news for web design ,development, open sources, techonoly and favorites
- 43 Incredibly Useful Collection of Tutorials, Resources, Insiprations « the gypsy
- 43 Incredibly Useful Collection of Tutorials, Resources, Inspirations etc To Discover The Best Of The Web In February | The Web Design Source
- 84 Amazingly Useful CSS Tips & Resources | Hi, I'm Grace Smith
- 84个CSS教程,老外的。 - Booto’Blog
- tableaux’ blog » een paar css tips
- 84 Useful CSS Tips & Resources | Monty Tuts - Your Ultimate Web Design Resource
- 84 Amazingly Useful CSS Tips & Resources | Grace Smith | cssOrigins.com
- 50+CSS实用技巧和资源汇总 | 博译论 | 分享网络热门与新知 关注网络应用与营销
- 16 Usable CSS Graph and Bar Chart Tutorials and Techniques : Speckyboy Design Magazine
- 84 recursos y consejos sobre CSS « GoVisual
- PureCSS » Blog Archive » 84个超级有用的CSS技巧与资源
- 84 Amazingly Useful CSS Tips & Resources « Knowledge Articles
- Free Resources to Help You Become a CSS Expert Designer, | guidesigner.net
- 250+ Resources to Help You Become a CSS Expert | X Design Blog
- 250+ Resources to Help You Become a CSS Expert | huibit05.com
- CSS Graph and Bar Chart Tutorials and Techniques | CSSJockey - Best On The Web
- Become a CSS Expert, 250+ Resources | Amazing and Inspiring Design
- Chilesabe » 84 tips CSS y Recursos
- www.zarei.net » آرشیو » گراف و چارت برای برنامه نویسان وب
- Dream of space » 84个CSS教程,老外的。
- 250+资源帮助你成为一个CSS专家 - 唯创网站设计博客
- Ajaxian » Pure CSS bar charts as a simple API
- Pure CSS bar charts as a simple API | Tutorial51
- Pure CSS bar charts as a simple API | newsgone
- Pure CSS bar charts as a simple API - Wasif Hafeez
- 84个超级有用的CSS技巧与资源 | CssRainbow.cn



























4 Feb, 2009
Nice list. Should come in handy. thanks
4 Feb, 2009
CSS is awesome!
4 Feb, 2009
wow.. very useful stuff
4 Feb, 2009
Wow, i wish more people would use these web development techniques rather than oversized javascript or flash for a simple graph!
4 Feb, 2009
nice…
what about google chart?
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250×100&chl=Hello|World
4 Feb, 2009
If you want to see sliding bar graph, fed by Ajax (real time ping data), please visit http://swatelier.info/at/articles/ajaxPing.asp
There are some other bar graphs useful for intranet: production plan, process down time, silo filling etc.
16 Feb, 2009
very cool stuff, but lemme give my 10 cents. hard to change peoples’ mindsets. they used to excel etc and they wanna stick to it. maybe something more eye-catching could do, like add audio to the graphs, make them mobile -slowly, of course. now that would catch peoples’ attention. but hey, a good concept all the same. great works no doubt.
27 Feb, 2009
thanks a lot!
4 Mar, 2009
nice css graphs. going to replace image based graphs with one of these. wish me luck.
28 Sep, 2009
Nice site and post.
I have tinkered with CSS based graphs myself. My goal was to keep them as flexible as possible by allowing the user to determine the size of the graph along with other aspects of the graph.
For vertical CSS bar graphs, check out this article that describes both the method and results.
For a horizontal CSS graph tutorial, please see.
Thanks!
23 Oct, 2009
WOW!!!! Great Collection…. Thanks for sharing :)
29 Jan, 2010
Great list. I was initially going ot use the gd library in php to draw the graphs. CSS is much easier, thanks.