Skip to content

Commit

Permalink
[discover] bump elastic-charts version and specify onElementClick typ…
Browse files Browse the repository at this point in the history
…e annotation
  • Loading branch information
Emma Cunningham committed Jul 29, 2019
1 parent c6959c6 commit bd47e6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
Axis,
Chart,
HistogramBarSeries,
GeometryValue,
getAnnotationId,
getAxisId,
getSpecId,
Expand Down Expand Up @@ -67,7 +68,7 @@ export class DiscoverHistogram extends Component<DiscoverHistogramProps> {
this.props.timefilterUpdateHandler(range);
};

public onElementClick = (xInterval: number) => (elementData: any) => {
public onElementClick = (xInterval: number) => (elementData: GeometryValue[]) => {
const startRange = elementData[0].x;

const range = {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bd47e6c

Please sign in to comment.