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

Displays a y axis max value based on the data displayed in the chart #1838

Merged
merged 3 commits into from
Nov 25, 2014

Conversation

stormpython
Copy link
Contributor

Closes #1821.

The problem is that the y max value for the y axis is based on the max value of all the data returned in an elasticsearch response. Elasticsearch may return buckets that fall outside of the time range specified (for more see my comments in #1787). In Kibana, however, we respect the time range the user selects and will only show data within that time range. Therefore, if the bucket that falls outside of the time range has the highest y value, then the y axis will use that value to set the max y axis value rather than taking the max value of the buckets displayed in the chart.

This pull request fixes this issue by pulling the y max value from the buckets displayed within the chart.

@rashidkpc
Copy link
Contributor

Would like to see tests for this fix

@rashidkpc rashidkpc added this to the 4.0.0-BETA3 milestone Nov 7, 2014
@stormpython
Copy link
Contributor Author

Yes, thats why I didn't add the review label. I need to write tests for this.

@ZeAleks
Copy link

ZeAleks commented Nov 24, 2014

Hi there,

Just to be sure, will that fixe this type of visualization (beta 2) ? :

image

Thx.
Alek

@stormpython
Copy link
Contributor Author

@ZeAleks no, this pull request won't change your visualization. What you want is for the charts to not share the same y axis scale. I will create an issue around what you are asking for. But essentially you want the y-axis in each chart to fit the bounds of the data.

For reference, this issue is #2021.

@rashidkpc
Copy link
Contributor

LGTM, merging.

rashidkpc added a commit that referenced this pull request Nov 25, 2014
Displays a y axis max value based on the data displayed in the chart
@rashidkpc rashidkpc merged commit a95f8bd into elastic:master Nov 25, 2014
@stormpython stormpython deleted the fix/#1821 branch December 10, 2014 12:37
@hex0cter
Copy link

What is the status of this feature now? Is it included in any release yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bar and Line Graphs Y-Axis dimension issue
4 participants