diff --git a/package.json b/package.json index 2e4dde390451a6d..1333a6730842ffa 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@babel/core": "7.4.5", "@babel/polyfill": "7.4.4", "@babel/register": "7.4.4", - "@elastic/charts": "^8.1.1", + "@elastic/charts": "^8.1.2", "@elastic/datemath": "5.0.2", "@elastic/eui": "13.0.0", "@elastic/filesaver": "1.1.2", diff --git a/src/legacy/core_plugins/kibana/public/discover/components/histogram/histogram.tsx b/src/legacy/core_plugins/kibana/public/discover/components/histogram/histogram.tsx index 2bdf4a6fa63cb22..d26a6d94091b490 100644 --- a/src/legacy/core_plugins/kibana/public/discover/components/histogram/histogram.tsx +++ b/src/legacy/core_plugins/kibana/public/discover/components/histogram/histogram.tsx @@ -27,6 +27,7 @@ import { Axis, Chart, HistogramBarSeries, + GeometryValue, getAnnotationId, getAxisId, getSpecId, @@ -67,7 +68,7 @@ export class DiscoverHistogram extends Component { this.props.timefilterUpdateHandler(range); }; - public onElementClick = (xInterval: number) => (elementData: any) => { + public onElementClick = (xInterval: number) => (elementData: GeometryValue[]) => { const startRange = elementData[0].x; const range = { diff --git a/yarn.lock b/yarn.lock index 4b0aa6d9f3c5df2..7af961751ee58c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1584,10 +1584,10 @@ debug "^3.1.0" lodash.once "^4.1.1" -"@elastic/charts@^8.1.1": - version "8.1.1" - resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-8.1.1.tgz#5b5897cf79aa384ce8bab6f14a7ea8c1f4095077" - integrity sha512-XjypIoWWtdJM3uHQydbEz5JkbXQ34nOMCQzry1p3t+J00o0U03qAyii1/TUn+Zohriis8ta7wnWD8nuwgfI3Iw== +"@elastic/charts@^8.1.2": + version "8.1.2" + resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-8.1.2.tgz#b661e1d2e2edf907c34b409341fed38febb38b0b" + integrity sha512-JIYldxJDRtBUnA7jm1dMlLQbXEbPPobS5OjYkDMltKT1ei+tDXQZFYYfWb6WrkWMPfUPCofe3vyYRpIT0m92nQ== dependencies: "@types/d3-shape" "^1.3.1" "@types/luxon" "^1.11.1"