mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Update dependency @elastic/charts to v37 (master) (#113968)
This commit is contained in:
parent
d5d364724b
commit
ff1b014c7b
42 changed files with 205 additions and 143 deletions
|
@ -20,6 +20,7 @@ import {
|
|||
ScaleType,
|
||||
Settings,
|
||||
XYChartElementEvent,
|
||||
XYBrushEvent,
|
||||
} from '@elastic/charts';
|
||||
import moment from 'moment';
|
||||
import { useDataVisualizerKibana } from '../../../../kibana_context';
|
||||
|
@ -91,7 +92,7 @@ export const DocumentCountChart: FC<Props> = ({
|
|||
[data]
|
||||
);
|
||||
|
||||
const onBrushEnd: BrushEndListener = ({ x }) => {
|
||||
const onBrushEnd = ({ x }: XYBrushEvent) => {
|
||||
if (!x) {
|
||||
return;
|
||||
}
|
||||
|
@ -117,7 +118,11 @@ export const DocumentCountChart: FC<Props> = ({
|
|||
height: 120,
|
||||
}}
|
||||
>
|
||||
<Settings xDomain={xDomain} onBrushEnd={onBrushEnd} onElementClick={onElementClick} />
|
||||
<Settings
|
||||
xDomain={xDomain}
|
||||
onBrushEnd={onBrushEnd as BrushEndListener}
|
||||
onElementClick={onElementClick}
|
||||
/>
|
||||
<Axis
|
||||
id="bottom"
|
||||
position={Position.Bottom}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue