Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
      <script type="text/javascript" src="//d3js.org/d3.v3.js"></script>  
      <link rel="stylesheet" type="text/css" href="https://rawgit.com/masayuki0812/c3/0.4.10/c3.min.css">
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
      <script type="text/javascript" src="https://rawgit.com/masayuki0812/c3/0.4.10/c3.js"></script>  
      
  
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div id="divForGraph_1"></div>
  
</body>
</html>
 
#divForGraph_1 {
  font-size:20px;
}
.c3-target-Medium text {
    fill: #484E2C;    
}
.c3-chart-arcs text {
  
}
 
c3.generate({
    bindto: '#divForGraph_1',
    data: {
        columns: [
            ['Large', 50],
            ['Medium', 1],
            ['Small', 25]
        ],
      colors: {
            Large: '#115E7C',
            Medium: '#D0DF00',
            Small: '#00AFDA'
        },
        type: "pie"
    },
    legend: {
        hide: false
    }
    
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers