adds stroke back to area charts (#14149)

This commit is contained in:
Peter Pisljar 2017-09-26 10:23:06 +02:00 committed by ppisljar
parent 3987888988
commit d869ceadde

View file

@ -119,16 +119,18 @@ export function VislibVisualizationsAreaChartProvider(Private) {
} }
// update // update
path.attr('d', function () { path
const area = getArea() .attr('d', function () {
.defined(function (d) { const area = getArea()
return !_.isNull(d.y); .defined(function (d) {
return !_.isNull(d.y);
})
.interpolate(interpolate);
return area(data.values.filter(function (d) {
return !_.isNull(d.y);
}));
}) })
.interpolate(interpolate); .style('stroke-width', '1px');
return area(data.values.filter(function (d) {
return !_.isNull(d.y);
}));
});
return path; return path;
} }