mirror of https://github.com/masayuki0812/c3.git
Quite good looking graph derived from d3.js
http://c3js.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
<html> |
|
<head> |
|
<link rel="stylesheet" type="text/css" href="c3.css"> |
|
</head> |
|
<body> |
|
<div id="chart"></div> |
|
|
|
<script src="http://d3js.org/d3.v4.min.js" charset="utf-8"></script> |
|
<script src="c3.min.js"></script> |
|
<script src="bubble.js"></script> |
|
<script> |
|
var chart = c3.generate({ |
|
data: { |
|
type: 'bubble', |
|
pairs: [ |
|
{ x: 'Name_0', y: 'Name_0', value: 10000 }, |
|
{ x: 'Name_0', y: 'Name_1', value: 20000 }, |
|
{ x: 'Name_0', y: 'Name_2', value: 39990 }, |
|
// { x: 'Name_1', y: 'Name_0', value: 5000 }, |
|
{ x: 'Name_1', y: 'Name_1', value: 6000 }, |
|
{ x: 'Name_1', y: 'Name_2', value: 50000 }, |
|
{ x: 'Name_2', y: 'Name_0', value: 1000 }, |
|
{ x: 'Name_2', y: 'Name_1', value: 2000 }, |
|
{ x: 'Name_2', y: 'Name_2', value: 3000 }, |
|
] |
|
}, |
|
grid: { |
|
x: { |
|
show: true |
|
}, |
|
y: { |
|
show: true |
|
} |
|
}, |
|
}); |
|
</script> |
|
</body> |
|
</html>
|
|
|