Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sascha Herzinger
AdaCharts
Commits
ac4d1160
Commit
ac4d1160
authored
Jan 30, 2019
by
Sascha Herzinger
Browse files
minor axis glitch fix
parent
5ec6bee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/charts/impl/Scatterplot.js
View file @
ac4d1160
...
...
@@ -18,6 +18,23 @@ export default class extends Chart {
this
.
tooltip
=
d3
.
select
(
container
)
.
append
(
'
div
'
)
.
attr
(
'
class
'
,
'
ac-scatter-tooltip
'
);
this
.
axisBottom
=
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-x-axis ac-scatter-axis
'
);
this
.
axisTop
=
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-x-axis ac-scatter-axis
'
);
this
.
axisLeft
=
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-y-axis ac-scatter-axis
'
);
this
.
axisRight
=
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-y-axis ac-scatter-axis
'
);
this
.
legend
=
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-legend
'
);
...
...
@@ -102,25 +119,17 @@ export default class extends Chart {
.
tickSizeInner
(
width
)
.
tickFormat
(
''
);
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-x-axis ac-scatter-axis
'
)
this
.
axisBottom
.
attr
(
'
transform
'
,
`translate(0,
${
height
}
)`
)
.
call
(
xAxisBottom
);
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-x-axis ac-scatter-axis
'
)
this
.
axisTop
.
call
(
xAxisTop
);
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-y-axis ac-scatter-axis
'
)
this
.
axisLeft
.
call
(
yAxisLeft
);
this
.
svg
.
append
(
'
g
'
)
.
attr
(
'
class
'
,
'
ac-scatter-y-axis ac-scatter-axis
'
)
this
.
axisRight
.
attr
(
'
transform
'
,
`translate(
${
width
}
, 0)`
)
.
call
(
yAxisRight
);
...
...
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