Learn how to display your data in a pie chart, with nothing more than HTML and CSS. Chris Converse shows how to create complex shapes with CSS3 properties and nested HTML5 elements. The course exercise files are free to all members and contain handy cut-and-paste code snippets that allow you to follow along with the instructions easily. When you're done, you'll have an elegant pie chart that will work in all HTML5-enabled web browsers, including Chrome, Firefox, Safari, and Internet Explorer.
Topics include:
0. Introduction
- Preview the final project
- About the exercise files
1. Creating HTML and CSS for a Pie Chart
- Creating the pie-chart container
- Making a shareable CSS rule
- Creating an element for the wedge
- Creating the wedge container
- Sizing and rotating the wedge shape
- Adding a second wedge shape
- Adding and positioning labels
- Adding graphics and context