Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sascha Herzinger
AdaCharts
Commits
5d941ca9
Commit
5d941ca9
authored
Jan 31, 2019
by
Sascha Herzinger
Browse files
minor visual improvements
parent
5bea303f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/charts/impl/Scatterplot.js
View file @
5d941ca9
...
...
@@ -9,7 +9,7 @@ export default class extends Chart {
constructor
({
container
})
{
super
({
container
});
this
.
memory
=
d3
.
select
(
document
.
createElement
(
'
memory
'
))
this
.
memory
=
d3
.
select
(
document
.
createElement
(
'
memory
'
))
;
this
.
hiddenCanvas
=
document
.
createElement
(
'
canvas
'
);
this
.
svg
=
d3
.
select
(
container
)
.
append
(
'
svg
'
)
...
...
@@ -101,8 +101,8 @@ export default class extends Chart {
const
margin
=
{
top
:
30
,
right
:
20
,
bottom
:
this
.
containerWidth
/
20
,
left
:
this
.
containerWidth
/
20
,
bottom
:
this
.
containerWidth
/
15
,
left
:
this
.
containerWidth
/
15
,
};
const
width
=
this
.
containerWidth
-
margin
.
left
-
margin
.
right
;
...
...
@@ -229,7 +229,7 @@ export default class extends Chart {
.
delay
((
_
,
i
)
=>
i
*
(
ANIMATION_DURATION
/
this
.
values
.
length
))
.
attr
(
'
dx
'
,
d
=>
x
(
d
[
0
]))
.
attr
(
'
dy
'
,
d
=>
y
(
d
[
1
]))
.
style
(
'
opacity
'
,
d
=>
((
typeof
_selectedCategory
!==
'
undefined
'
&&
d
[
2
]
!==
_selectedCategory
)
?
0.
3
:
1
))
.
style
(
'
opacity
'
,
d
=>
((
typeof
_selectedCategory
!==
'
undefined
'
&&
d
[
2
]
!==
_selectedCategory
)
?
0.
2
:
1
))
.
attr
(
'
r
'
,
Math
.
ceil
(
width
/
150
))
.
attr
(
'
fillStyle
'
,
d
=>
color
(
d
[
2
]))
.
attr
(
'
title
'
,
d
=>
`
...
...
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