Skip to content

Commit c1abd3e

Browse files
committed
PR feedback - return [x, y] only
1 parent a9b8b3e commit c1abd3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/traces/contourgl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ proto.handlePick = function(pickResult) {
7777
],
7878
textLabel: this.textLabels[index],
7979
name: this.name,
80-
pointIndex: [xIndex, yIndex, zIndex],
80+
pointIndex: [xIndex, yIndex],
8181
hoverinfo: this.hoverinfo
8282
};
8383
};

src/traces/heatmapgl/convert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ proto.handlePick = function(pickResult) {
6363
],
6464
textLabel: this.textLabels[index],
6565
name: this.name,
66-
pointIndex: [xIndex, yIndex, zIndex],
66+
pointIndex: [xIndex, yIndex],
6767
hoverinfo: this.hoverinfo
6868
};
6969
};

test/jasmine/tests/gl2d_click_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ describe('Test hover and click interactions', function() {
327327
expect(pt.x).toEqual(2);
328328
expect(pt.y).toEqual(3);
329329
expect(pt.curveNumber).toEqual(0);
330-
expect(pt.pointNumber).toEqual([2, 3, 17]);
330+
expect(pt.pointNumber).toEqual([2, 3]);
331331
expect(pt.fullData.length).toEqual(1);
332332
expect(typeof pt.data.uid).toEqual('string');
333333
expect(pt.xaxis.domain.length).toEqual(2);
@@ -367,7 +367,7 @@ describe('Test hover and click interactions', function() {
367367
expect(pt.x).toEqual(2);
368368
expect(pt.y).toEqual(3);
369369
expect(pt.curveNumber).toEqual(0);
370-
expect(pt.pointNumber).toEqual([2, 3, 17]);
370+
expect(pt.pointNumber).toEqual([2, 3]);
371371
expect(pt.fullData.length).toEqual(1);
372372
expect(typeof pt.data.uid).toEqual('string');
373373
expect(pt.xaxis.domain.length).toEqual(2);

0 commit comments

Comments
 (0)