*{ box-sizing: border-box; } body{ display: flex; justify-content: space-between; max-width: 800px; margin:0 auto; } body .box{ border: solid 1px #eee; padding: 20px; width:calc(100% / 3 - 20px); } .js_piechart{ position: relative; } .pie_chart{ transform:rotate(-90deg);/*頂点から始まるように調整*/ position: relative; z-index: 3; } .pie_chart circle{ fill:transparent;/*塗り*/ stroke-width:10;/*線の幅*/ stroke-linecap: round; } .pie_chart.bg{ position: absolute; left: 0; top: 0; z-index: 1; } .pie_chart.bg circle{ stroke: #eee; }
data-chartval="30"
data-chartval="60"
data-chartval="100"