display series with 0 value in the legend

pull/10616/head
Iris Scholten 2018-02-13 11:39:46 -08:00 committed by Luke Morris
parent 932d4f3084
commit 374878f626
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ const DygraphLegend = ({
isFilterVisible,
onToggleFilter,
}) => {
const withValues = series.filter(s => s.y)
const withValues = series.filter(s => !_.isNil(s.y))
const sorted = _.sortBy(
withValues,
({y, label}) => (sortType === 'numeric' ? y : label)