Merge pull request #2687 from influxdata/bugfix/legend-no-value
Remove no-value from listpull/10616/head
commit
743105b22f
|
@ -16,6 +16,7 @@
|
|||
### Bug Fixes
|
||||
1. [#2652](https://github.com/influxdata/chronograf/pull/2652): Make page render successfully when attempting to edit a source
|
||||
1. [#2664](https://github.com/influxdata/chronograf/pull/2664): Fix CustomTimeIndicator positioning
|
||||
1. [#2687](https://github.com/influxdata/chronograf/pull/2687): Remove series with "no value" from legend
|
||||
|
||||
## v1.4.0.0-rc2 [2017-12-21]
|
||||
### UI Improvements
|
||||
|
|
|
@ -29,8 +29,9 @@ const DygraphLegend = ({
|
|||
isFilterVisible,
|
||||
onToggleFilter,
|
||||
}) => {
|
||||
const withValues = series.filter(s => s.y)
|
||||
const sorted = _.sortBy(
|
||||
series,
|
||||
withValues,
|
||||
({y, label}) => (sortType === 'numeric' ? y : label)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue