{"id":566,"date":"2017-01-30T07:37:44","date_gmt":"2017-01-30T07:37:44","guid":{"rendered":"https:\/\/blogs.scu.edu\/dataviz\/?p=566"},"modified":"2017-01-30T07:37:44","modified_gmt":"2017-01-30T07:37:44","slug":"pure-css-percentage-circle","status":"publish","type":"post","link":"https:\/\/blogs.scu.edu\/dataviz\/2017\/01\/30\/pure-css-percentage-circle\/","title":{"rendered":"Pure CSS Percentage Circle"},"content":{"rendered":"<p>As I&#8217;m working on my first dashboard project recently, I pay great attention to building DOM elements with animations.<\/p>\n<p>Here I have found a great\u00a0website about simple percentage circle:\u00a0http:\/\/circle.firchow.net\/. You can also check out the source code on Github:\u00a0https:\/\/github.com\/afuersch\/css-percentage-circleA few things you need to know before starting to build a percentage circle by yourself:<\/p>\n<p>A few things that you need to know before starting to build a percentage circle by yourself: clearfix, transform, hover, before&amp;after. &#8220;clearfix&#8221; is a class when you are using float layout, to automatically clear all child elements of one element.\u00a0&#8220;transform&#8221; is the degree to rotate a CSS element.\u00a0&#8220;hover&#8221; is when your mouse just moves onto one element, it may render some changes.\u00a0&#8220;before&#8221; and &#8220;after&#8221; are CSS pseudo elements, which are not real elements on index.html, and you can induce some actions for them.<\/p>\n<p>A complete animated percentage circle includes its outer circle, the bar, the percentage number, the filled color inside of the circle, before and after elements, and the clearfix\u00a0keyword.<\/p>\n<p>Right now I myself is pondering over the source code to understand each line of it. I know that I can just use it instead of reinventing the wheels, but I think it&#8217;s better to know the fundamentals and then build fancy visualizations myself.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I&#8217;m working on my first dashboard project recently, I pay great attention to building DOM elements with animations. Here I have found a great\u00a0website about simple percentage circle:\u00a0http:\/\/circle.firchow.net\/. You can also check out the source code on Github:\u00a0https:\/\/github.com\/afuersch\/css-percentage-circleA few things you need to know before starting to build a percentage circle by yourself: A &hellip; <a href=\"https:\/\/blogs.scu.edu\/dataviz\/2017\/01\/30\/pure-css-percentage-circle\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pure CSS Percentage Circle<\/span><\/a><\/p>\n","protected":false},"author":1882,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"qubely_global_settings":"","qubely_interactions":"","kk_blocks_editor_width":"","_kiokenblocks_attr":"","_kiokenblocks_dimensions":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-566","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"gutentor_comment":1,"qubely_featured_image_url":null,"qubely_author":{"display_name":"danningpeng","author_link":"https:\/\/blogs.scu.edu\/dataviz\/author\/danningpeng\/"},"qubely_comment":1,"qubely_category":"<a href=\"https:\/\/blogs.scu.edu\/dataviz\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","qubely_excerpt":"As I&#8217;m working on my first dashboard project recently, I pay great attention to building DOM elements with animations. Here I have found a great\u00a0website about simple percentage circle:\u00a0http:\/\/circle.firchow.net\/. You can also check out the source code on Github:\u00a0https:\/\/github.com\/afuersch\/css-percentage-circleA few things you need to know before starting to build a percentage circle by yourself: A&hellip;","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/users\/1882"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/posts\/566\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scu.edu\/dataviz\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}