Commit 920d378d authored by Masayuki Tanaka's avatar Masayuki Tanaka

Update bubble chart extension

parent 18f7de7e
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
} }
max = d3.max(Object.keys(values).map(function (key) { return values[key]; })); max = d3.max(Object.keys(values).map(function (key) { return values[key]; }));
min = d3.min(Object.keys(values).map(function (key) { return values[key]; })), min = d3.min(Object.keys(values).map(function (key) { return values[key]; })) * 0.8,
a = ((base_length / (names.length * 2)) - 1) / (Math.log(max + 1) - Math.log(min + 1)); a = ((base_length / (names.length * 2)) - 1) / (Math.log(max + 1) - Math.log(min + 1));
value = !values[key] ? 0 : values[key]; value = !values[key] ? 0 : values[key];
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
{ x: 'Name_1', y: 'Name_1', value: 6000 }, { x: 'Name_1', y: 'Name_1', value: 6000 },
{ x: 'Name_1', y: 'Name_2', value: 50000 }, { x: 'Name_1', y: 'Name_2', value: 50000 },
{ x: 'Name_2', y: 'Name_0', value: 1000 }, { x: 'Name_2', y: 'Name_0', value: 1000 },
{ x: 'Name_2', y: 'Name_1', value: 20000 }, { x: 'Name_2', y: 'Name_1', value: 2000 },
{ x: 'Name_2', y: 'Name_2', value: 30000 }, { x: 'Name_2', y: 'Name_2', value: 3000 },
] ]
}, },
grid: { grid: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment