Skip to content

Commit 5fbe9db

Browse files
authored
Merge pull request #1965 from bgth/patch-3
Fix one part of #1963. Missed Logic added.
2 parents 67b0a66 + 518c580 commit 5fbe9db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/stackedAreaChart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ nv.models.stackedAreaChart = function() {
402402

403403
interactiveLayer.dispatch.on('elementMousemove', function(e) {
404404
stacked.clearHighlights();
405-
var singlePoint, pointIndex, pointXLocation, allData = [], valueSum = 0, allNullValues = true;
405+
var singlePoint, pointIndex, pointXLocation, allData = [], valueSum = 0, allNullValues = true, atleastOnePoint = false;
406406
data
407407
.filter(function(series, i) {
408408
series.seriesIndex = i;
@@ -414,6 +414,7 @@ nv.models.stackedAreaChart = function() {
414414
var pointYValue = chart.y()(point, pointIndex);
415415
if (pointYValue != null && pointYValue > 0) {
416416
stacked.highlightPoint(i, pointIndex, true);
417+
atleastOnePoint = true;
417418
}
418419

419420
// Draw at least one point if all values are zero.

0 commit comments

Comments
 (0)