Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Anderson, Danny H
gist-charts
Commits
508f601a
Commit
508f601a
authored
Sep 13, 2018
by
David Anderson
Browse files
undit the margin fix to scatter chart only
parent
4f83748c
Changes
1
Hide whitespace changes
Inline
Side-by-side
gist-charts/source/implementations/charts/scatterChartImplementation.class.ts
View file @
508f601a
...
...
@@ -53,8 +53,6 @@ export class ScatterChartImplementation extends BaseChartImplementation {
public
getDataAtCoord
(
px
:
number
,
py
:
number
,
closeEnough
:
number
):
DataPoint
[]
{
let
activePoints
:
Array
<
Point
>
=
[];
px
+=
this
.
chart
.
margin
;
py
+=
this
.
chart
.
margin
;
let
xi
=
px
-
closeEnough
,
xo
=
px
+
closeEnough
,
yi
=
py
-
closeEnough
,
yo
=
py
+
closeEnough
;
this
.
quadTree
.
visit
((
node
:
any
,
x0
,
y0
,
x1
,
y1
)
=>
{
if
(
!
node
.
length
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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