<div id="pieChart"></div>
<script>
var chart = c3.generate({
bindto : '#pieChart',
size: {
width: 300,
height: 300
},
data: {
columns: [
['data1' : 45],
['data2' : 56],
['data3' : 20]
],
type : 'pie'
}
});
</script>
No comments:
Post a Comment