display series with 0 value in the legend
parent
932d4f3084
commit
374878f626
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue