Skip to content
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

Not plotting zero value correctly on line graph #13111

Closed
mmadala95 opened this issue Jul 26, 2017 · 8 comments
Closed

Not plotting zero value correctly on line graph #13111

mmadala95 opened this issue Jul 26, 2017 · 8 comments
Assignees
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement

Comments

@mmadala95
Copy link

Kibana 5.0.1:

Elasticsearch version 5.0.1:

Centos 6.8:

Chrome 59:

Hi,
line graph visualizations does not mark exact points at times ,just like the one in image below , Graph does not plot for value zero.Here the purple line must point to zero because no data is available at that point ,but still the graph maintains a constant value,What could be the reason ?

screenshot 34

@thomasneirynck thomasneirynck changed the title Line graph Visualization Data Marking wrong Not plotting zero value correctly on line graph Jul 26, 2017
@thomasneirynck thomasneirynck added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) bug Fixes for quality problems that affect the customer experience labels Jul 26, 2017
@thomasneirynck
Copy link
Contributor

What value do you have on the X-axis? Is that a date-histogram?

@mmadala95
Copy link
Author

Not exactly ,we have a field called incident month of type string on x axis , y axis we have unique count of those incident's ID

@thomasneirynck
Copy link
Contributor

@ManojKumarMadala thanks,

Can you paste the ES-response? (open the spy-panel, little grey arrow bottom left).

Do you get the same result when using a bar chart?

@mmadala95
Copy link
Author

Thanks @thomasneirynck

{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1376,
"max_score": 0,
"hits": []
},
"aggregations": {
"2": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S2",
"doc_count": 8
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S1",
"doc_count": 3
}
]
},
"key": "2017-A-April",
"doc_count": 85
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 3
},
"key": "Assist",
"doc_count": 3
}
]
},
"key": "S2",
"doc_count": 10
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 3
}
]
},
"key": "2017-B-May",
"doc_count": 87
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S2",
"doc_count": 8
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2017-C-June",
"doc_count": 106
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 4
},
"key": "Assist",
"doc_count": 4
}
]
},
"key": "S2",
"doc_count": 7
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S1",
"doc_count": 2
}
]
},
"key": "2017-D-July",
"doc_count": 76
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S2",
"doc_count": 1
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 5
},
"key": "Assist",
"doc_count": 5
}
]
},
"key": "S1",
"doc_count": 5
}
]
},
"key": "2017-E-August",
"doc_count": 72
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S2",
"doc_count": 3
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 5
},
"key": "Assist",
"doc_count": 5
}
]
},
"key": "S1",
"doc_count": 5
}
]
},
"key": "2017-F-September",
"doc_count": 61
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 9
},
"key": "Assist",
"doc_count": 9
}
]
},
"key": "S2",
"doc_count": 11
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S1",
"doc_count": 2
}
]
},
"key": "2017-G-October",
"doc_count": 67
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 3
},
"key": "Assist",
"doc_count": 3
}
]
},
"key": "S2",
"doc_count": 8
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S1",
"doc_count": 2
}
]
},
"key": "2017-H-November",
"doc_count": 74
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S2",
"doc_count": 6
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2017-I-December",
"doc_count": 80
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S2",
"doc_count": 3
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2017-J-January",
"doc_count": 74
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 3
},
"key": "Assist",
"doc_count": 3
}
]
},
"key": "S2",
"doc_count": 9
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2017-K-February",
"doc_count": 92
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 5
},
"key": "Assist",
"doc_count": 5
}
]
},
"key": "S2",
"doc_count": 7
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 3
},
"key": "Assist",
"doc_count": 3
}
]
},
"key": "S1",
"doc_count": 3
}
]
},
"key": "2017-L-March",
"doc_count": 147
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 5
},
"key": "Assist",
"doc_count": 5
}
]
},
"key": "S2",
"doc_count": 5
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2018-A-April",
"doc_count": 106
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 4
},
"key": "Assist",
"doc_count": 4
}
]
},
"key": "S1",
"doc_count": 4
}
]
},
"key": "2018-B-May",
"doc_count": 90
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 5
},
"key": "Assist",
"doc_count": 5
}
]
},
"key": "S2",
"doc_count": 5
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 2
},
"key": "Assist",
"doc_count": 2
}
]
},
"key": "S1",
"doc_count": 2
}
]
},
"key": "2018-C-June",
"doc_count": 70
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S2",
"doc_count": 1
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"1": {
"value": 1
},
"key": "Assist",
"doc_count": 1
}
]
},
"key": "S1",
"doc_count": 1
}
]
},
"key": "2018-D-July",
"doc_count": 70
}
]
}
},
"status": 200
}

@mmadala95 mmadala95 reopened this Jul 27, 2017
@mmadala95
Copy link
Author

mmadala95 commented Jul 27, 2017

@thomasneirynck sorry i closed it by mistake

Bar Chart Seems to work fine, split bars shows no data for that month.But i have a requirement of Line Graph for this Particular set of data.
Thanks

@thomasneirynck
Copy link
Contributor

Is this still occurring on the latest version of v5? In v5.3, there were some significant changes to the line and bar charts, which may have resolved this issue.

@thomasneirynck thomasneirynck self-assigned this Sep 29, 2017
@epixa epixa added v5.6.4 and removed v5.6.3 labels Oct 11, 2017
@epixa epixa added v5.6.5 and removed v5.6.4 labels Nov 14, 2017
@thomasneirynck
Copy link
Contributor

We should add the option for users here to select a fit function. e.g. drop to zero, connect, omit, similar how this can be configured in Timelion.

In the meantime, using a bar chart maybe an appropriate work-around.

@timroes
Copy link
Contributor

timroes commented Apr 16, 2018

I will close this with reference to #17717 which is the new ticket for fitting functions, which is the actual feature request here.

@timroes timroes closed this as completed Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement
Projects
None yet
Development

No branches or pull requests

4 participants