-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in visualization #43
Comments
Hi, Datasweet Formula is intended only to compute some stuff from another metric or bucket set in your viz. You are trying to make it work without any reference to another metric/bucket, am I right? |
No, i have 2 metrics defined. |
OK, I reproduced. Indeed in a "no document found" situation, Kibana throws "no result found" if a bucket split is active, and a "0" if no bucket split is active (or Range bucket split). Same problem with or without Datasweet-Formula implied. |
Are you saying that the problem is in Kibana and not in datasweet? I still think it is in datasweet. I think the execution of the formula throws the error.
|
The error is generated by the plugin, because Kibana output is a "no result found". When Kibana output is a zero, the plugin does its job. |
I never ever programmed in javascript but I think I solved the problem. In file './decorators/lib/apply_formula.js' I changed a line in function 'mutate'. The now get a nice 'no results found' message in my visualization. |
@tcharlot-datasweet |
I get a popup when I run a vizualisation that has a datasweet formula.
The message is:
Error in visualisation
Cannot read property '0' or undefined.
The vizualization is a horizontal barchart with a datasweet formula: "100" (So just a number).
It happens with the following 2 circumstances (both must be true):
I do NOT get an error when (either of the 2)
I'm using elasticsearch/ kibana 6.6.2
The text was updated successfully, but these errors were encountered: