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

Pie chart as sum of multiple fields #8143

Closed
Tracked by #57707
PhaedrusTheGreek opened this issue Sep 1, 2016 · 12 comments · Fixed by #143966
Closed
Tracked by #57707

Pie chart as sum of multiple fields #8143

PhaedrusTheGreek opened this issue Sep 1, 2016 · 12 comments · Fixed by #143966
Assignees
Labels
Feature:Lens 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

@PhaedrusTheGreek
Copy link
Contributor

Given the following data, would it be possible to provide a special sort of pie chart where each piece of the pie is the sum of a particular field?

PUT pie-test/test/1
{
    "metric" : {
        "wait" : 2.33,
        "idle" : 4.22,
        "user" : 2.11,
        "system" : 2.2
    }
}

PUT pie-test/test/2
{
    "metric" : {
        "wait" : 3.33,
        "idle" : 11.22,
        "user" : 100.11,
        "system" : 2.2
    }
}

This is spawned from a question in IRC. There's also the same question here.

@Bargs
Copy link
Contributor

Bargs commented Sep 1, 2016

I can see how this would be useful, but I'm having a hard time thinking of a good way to fit this into Kibana's existing buckets and metrics model.

@trevan
Copy link
Contributor

trevan commented Sep 1, 2016

If pie chart allowed you to split the pie using metrics instead of buckets, it would work. Then you would just need to add the 4 metrics and don't add any buckets and it would work. Maybe if there was a "metric" bucket that let you select which metrics to use.

@Bargs
Copy link
Contributor

Bargs commented Sep 1, 2016

Thanks @trevan, you make a good point, now that I think about there is some precedent for this in the bar chart, which can split bars across different metrics. We would just need to make sure that multi metrics don't allow multiple buckets, or if multiple buckets are selected they have to be a split chart, not split slices.

@epixa epixa removed the discuss label Oct 24, 2016
@tbragin tbragin added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Oct 24, 2016
@epixa
Copy link
Contributor

epixa commented Oct 24, 2016

This seems like a reasonable request, so I removed the discuss label

@epixa epixa closed this as completed Oct 24, 2016
@epixa epixa reopened this Oct 24, 2016
@epixa
Copy link
Contributor

epixa commented Oct 24, 2016

Pardon the accidental close.

@jccq
Copy link

jccq commented Oct 25, 2016

I believe this special pie chart - which would name the variables for the slices - would in pratice be similar to a spider chart? e.g. see
https://github.com/sirensolutions/kibi_radar_vis

@pranav0091
Copy link

This would be very nice to have. I have to deal with significant data (not too many documents, but thousands of fields per document) and I'm trying to move away from Excel - its these little things that I didnt expect that bite when least expected under testing.

Right now I use Vertical Bar chart (stacked) to make sense of these, but a pie-chart just is just more intuitive for the reader.

The problem with relying too heavily on plugins is that you are at the mercy of a third party for features. kibi_radar_vis looks awesome, but it doesn't install on 6.0.0alpha2. Why am I trialing an alpha2? Because it lets me search through fields to visualise and a drop down is not very helpful when it has 2500+ entries.

As a whole, awesome work guys - data is cheap, information is hard.

@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@StavSaad
Copy link

Hey, I've been wondering if there is any progress regarding this issue?

@Kolano
Copy link

Kolano commented May 15, 2019

This is missing the ":Pie Chart" label

@w00tedness
Copy link

Has there been any developments on this feature?

@jan
Copy link

jan commented Feb 27, 2023

It is already possible to create a stacked percentage bar chart using multiple Y-axes. Since a donut chart is—in a way—just a bent stacked percentage bart, I don't think the underlying data structure is prohibitive in any way to implement this.

@drewdaemon
Copy link
Contributor

Hi @jan . This issue was completed. Follow the docs to build a multi-metric donut chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens 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