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

Kibana 4 - scale feature as in KB3? #4394

Closed
radoondas opened this issue Jul 6, 2015 · 6 comments
Closed

Kibana 4 - scale feature as in KB3? #4394

radoondas opened this issue Jul 6, 2015 · 6 comments
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@radoondas
Copy link
Member

Hi,
I would like to ask if you plan to provide scale feature in KB4 as in KB3.
Or there is different approach to do this?

I know hot to format fileds in KB4.1, but Scale Fields is missing for me.

Thanks,
Rado

kb3-scaleexample

@w33ble
Copy link
Contributor

w33ble commented Jul 7, 2015

This would likely be handled with field formatters, but right now we don't expose any "code" to the formatters, just a lot of default numeral.js functionality.

This sort of functionality will likely require #4361

@yehosef
Copy link

yehosef commented Jul 8, 2015

I'm not sure if these are the the same thing - in the original issue #4357

we end up with a bunch of numbers in the legend instead of the labels

Scaling is asking that the field value be modified whereas the linked issue is asking that the field name be modified. Perhaps the intent of field formatters would handle both - I just wanted to point out it seems to be a different case.

@radoondas
Copy link
Member Author

After closely reading the issue #4357 I also think that this is different request. Although it might use some of the features of formatters.

@w33ble
Copy link
Contributor

w33ble commented Jul 14, 2015

I agree that these are two different issues, but they should both be solvable using the custom directives we have planned for field formatters, which is what #4361 addresses. The difference, at least to me, is that #4357 will likely be solved via a user-defined formatter, while this is a feature that will likely be provided out of the box, but both will use the same underlying feature in field formatters.

@yehosef
Copy link

yehosef commented Jul 15, 2015

But to be clear - it seems that the (angular) "directive" aspect of this solution is that when you have the directive for the field label, the directive is smarter than just using a simple value from the data and can extrapolate the desired value from some other data input. This issue (#4394) seems more connected to manipulating the data which would typically be happening at a factory/service layer. There will be some inputs/directives perhaps to choose what the value is, but the manipulation/scaling for this issue would typically not be happening at a directive level - it would seem.

Maybe I don't understand the problem or proposed solution properly - but it raised the question because I wouldn't think that this problem would NOT be solved with a directive, whereas that problem (#4361) I assumed would be.

@tbragin tbragin added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Oct 30, 2017
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@timroes
Copy link
Contributor

timroes commented Jun 21, 2021

Lens already has a way to scale to a specific time-unit (which goes a bit beyond what's asked here), i.e. normalize a value "per second", "per minute", etc.

Also the upcoming Lens Formulas (#91087) will allow making this arbitrary scaling, by being able to multiply any aggregation or calculation of aggregation with any (fixed) factor. Closing this thus in favor or the soon arriving Formulas.

@timroes timroes closed this as completed Jun 21, 2021
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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants