css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

A few different chart types using the HTML5 canvas. Pie chart based on the pen by aaronlsilber which is based on an article by James Litten


  1. Nice. Would be even better (for a markup purist like me) if you could include the 'pie data' variables into the HTML. You already rely on Javascript, so couldn't you pull the data value from an arbitrary argument to an HTML tag? Something like: One That would make the markup more readable, even without JS.

  2. @RavenNevermore so something like this? (pen edited)

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.