-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Set Y-axis extents to custom values #67614
Comments
Could you please clarify, if you mean by "scale" changing the range of that axis between linear and logarithmic, or if you mean, that you'd want to change the range it's using (e.g. make the min value of the axis 40k and the max value 45k)? |
Pinging @elastic/kibana-app (Team:KibanaApp) |
I mean to change the range to either custom extents or set bounds around the values of the data |
We've had some discussions about this feature recently and realized that line charts are the only chart type where this makes sense. It would render in a misleading way for bar charts or area charts. |
Hi wylieconlon, what would be your decision then? When we want to do X/Y graphs without time (let's say compare population size by coutry/ Temperature over position/etc... ) is there a way to do it in Kibana without the Line graph? |
@pgraca-38 As a workaround for now you can use the aggregation based visualizations instead of Lens - there you can set the axis extends for all types of xy series. @wylieconlon Let's discuss this offline, but we have to think through how this will work in the Lens UI (e.g. in the case of mixed xy chart) |
Could we have for line charts (and bar charts) an option to constrain the extents to the variation in the data in addition to or instead of fixed extents like what exist in TSVB. |
@VijayDoshi that makes sense. In Visualize we allow the following settings:
|
Is this feature (scaling the y-axis to the data bounds) planned for a coming release? |
@maatthias There is no fix release date yet, but we take Github engagement (like your comment) into account for our next planning round. As this is a small feature, there's a good chance to make it into one of the next release (>= 7.14) |
Cloud SRE filled out an ER for an |
from give-feedback@:
|
@wylieconlon wrote:
I have field values that indicate the percentage of a particular area of memory in use by each process running on a computer. I want to chart the maximum value (for a given time period) of that field, by process (probably, top 10). Probably on a vertical bar chart, in descending order. I'm undecided about wanting to set the maximum Y-axis value on this chart to 100 (that is, 100%). On the one hand, the percentage values are typically low, so setting a fixed maximum Y-axis value of 100 would mean that, typically, the chart would be mostly white space. On the other hand, perhaps I want that: typically, values that appear on the chart as reassuringly low. Anyway, this is a use case for a fixed Y-axis (maximum) extent in a chart type other than line. Feel free to push back if you disagree. |
@GrahamHannington do you have a screenshot of the chart you're talking about? I think I see what you mean, but it could help to include a visual aid. It sounds like you are asking for a chart type that you can build using the "aggregation-based vertical bar chart" because you are allowed to choose custom extents for the Y axis. |
Yes, you're right. I might be wrong about the nature of this issue: I thought it was specific to Lens; I thought the idea was to add this feature to Lens. More broadly, I gather that Lens is the way forward for visualization in Kibana, so the general idea is bring in features from other visualization/panel editors (such as the aggregation-based editor). Am I close? |
@GrahamHannington Sorry I wasn't clear: I was suggesting a workaround of using the other chart type which already has the feature. Your example makes sense, and I think we can use this to make a more nuanced rule than "never use custom extents on a bar chart". If I were to propose a new rule, it is:
Does this make sense? |
Moving the discussion here: This is the UI/feature set I'm seeing here based on the discussion:
|
@flash1293 Yes, that looks like the set of inputs that I was imagining as well. 👍 |
Great, I think next the step would be to build a version of this so we can iterate on the specific form elements. |
@flash1293 should we move the edit: done #98186 |
@ghudgins changing the axis scale should definitely be a separate issue - I thought we had one already, but I can't find it. Could you create one? |
I have a question about how the UI for this should look like. At first I tried to build something like in #67614 (comment) , but I really don't like it:
So this is my new proposal:
IMHO this balances giving control to the user, keeping data viz best practices and keeping the UI simple. What do you think @ghudgins @MichaelMarcialis |
@flash1293 I think your iteration on the original idea has resulted in something that's easier to parse. Lower/upper being on the same line helps me understand the values when setting the extent. Regarding extents, I think the options you have are probably the best I can think of if we want all 3 options....and I think edit: other ideas: Anyway, the above non-solutions withstanding, it looks good to me. |
@ghudgins I went through the same thought process with the "auto" label - in the end I settled with it because I couldn't find a good name either and "auto" is just short for "Lens will handle it, don't worry". I think there are good use cases for all three - if we drop the auto bounds though we could simplify the UI and just offer two inputs (lower and upper bound). As long as they are empty, they are working like "auto", once the user fills in a value, it becomes custom. IMHO the extra complexity is worth it though and we should build the three-state UI. Other possible names for "auto": "zero to data", "default" |
@flash1293: Wow, excellent job on refining your original concept! This is really looking great. Here's some of my quick feedback and questions based on your screenshots:
|
We can definitely do this - I like how it simplifies the popover. I added them because I thought it would be nice to show the currently applied extents, but it's not strictly necessary.
"Full" isn't bad - what about solving both of these things by showing the
|
We could do that if there is a concern that users will not understand the difference between the three modes base on their names alone. Personally though, I think the only aspect that definitely requires additional help text is the limitations (0 max) for bar charts in custom mode, so I'd be ok with just that given the appropriate conditions (i.e. bar chart in custom mode). |
@MichaelMarcialis Please check out the PR here: #99203 and let me know what you think |
Please can you add the ability to change the Y axis scale on a line graph in Lens
I have a Lens line chart values between 40,000 and 45,000 over a 12 month period so I need to be able to change the scale on the Y-axis to be able to see the trend as it looks just like a straight line
The text was updated successfully, but these errors were encountered: