Skip to content

Commit b577dfb

Browse files
committed
Fix close price annotation
1 parent 4ead65f commit b577dfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/assets/js/chart/primary.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ export default function() {
210210
var tickValuesWithAnnotations = produceAnnotatedTickValues(yScale, [latestPrice]);
211211
primaryChart.yTickValues(tickValuesWithAnnotations)
212212
.yDecorate(function(s) {
213-
var closePriceTick = s.selectAll('.tick')
214-
.filter(function(d) { return d === latestPrice; })
213+
var closePriceTick = s.filter(function(d) { return d === latestPrice; })
215214
.classed('close-line', true);
216215

217216
var calloutHeight = 18;

0 commit comments

Comments
 (0)