File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
x-pack/plugins/apm/public/components/shared/charts/ErroneousTransactionsRateChart Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 66import { EuiTitle } from '@elastic/eui' ;
77import theme from '@elastic/eui/dist/eui_theme_light.json' ;
88import { i18n } from '@kbn/i18n' ;
9- import { mean } from 'lodash' ;
109import React , { useCallback } from 'react' ;
1110import { EuiPanel } from '@elastic/eui' ;
1211import { useChartsSync } from '../../../../hooks/useChartsSync' ;
@@ -79,7 +78,7 @@ export const ErroneousTransactionsRateChart = () => {
7978 {
8079 color : theme . euiColorVis7 ,
8180 data : [ ] ,
82- legendValue : tickFormatY ( mean ( errorRates . map ( ( rate ) => rate . y ) ) ) ,
81+ legendValue : tickFormatY ( data ?. average ) ,
8382 legendClickDisabled : true ,
8483 title : i18n . translate ( 'xpack.apm.errorRateChart.avgLabel' , {
8584 defaultMessage : 'Avg.' ,
You can’t perform that action at this time.
0 commit comments