Mathematical relation of numeric fields as value for Split Slices


#1

Hi all!

I want to use mathematical relation of two numeric fields for split slices in Pie Chart (field1/field2 as field in Terms sub aggregation). Can I do it? Is there any way to do it with painless script in "Advanced" for split slices ?

Sorry for my bad English!

Thanks,
Darya


(Stacey Gammon) #2

You can do this with a painless scripted field. Head over to the Management app, click Index Patterns, make sure your index is selected, and select the scripted fields tab. There you can add a new scripted field using a mathematical calculation:

Once you've created your new numeric field, you can use it in a pie chart:

BTW, your english was just about perfect. :slight_smile:


#3

Thank you so much, @Stacey_Gammon !


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.