Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
920d378d
Commit
920d378d
authored
Aug 11, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update bubble chart extension
parent
18f7de7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bubble.js
extensions/chart-bubble/bubble.js
+1
-1
index.html
extensions/chart-bubble/index.html
+2
-2
No files found.
extensions/chart-bubble/bubble.js
View file @
920d378d
...
...
@@ -49,7 +49,7 @@
}
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
));
value
=
!
values
[
key
]
?
0
:
values
[
key
];
...
...
extensions/chart-bubble/index.html
View file @
920d378d
...
...
@@ -20,8 +20,8 @@
{
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
0
},
{
x
:
'Name_2'
,
y
:
'Name_2'
,
value
:
3000
0
},
{
x
:
'Name_2'
,
y
:
'Name_1'
,
value
:
2000
},
{
x
:
'Name_2'
,
y
:
'Name_2'
,
value
:
3000
},
]
},
grid
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment