Dashboards & Visualizations

Plotting a trapezoid on a chart and calculating its area

keerthana_k
Communicator

Hi All,

I am trying to plot a trapezoid over a chart and calculate it’s area to find a value that I am interested in. Please refer image.
If I can get the length of the two sides and the height from base, then I can calculate the area of the trapezoid. Is there any in-built function to do this? Or else is there a way I can plot the trapezoid over a chart and find the necessary values?

alt text

0 Karma
1 Solution

jtrucks
Splunk Employee
Splunk Employee

You might be able to do this using some of the external visualization libraries via the API, but there is no built-in function that would calculate that information for you unless you have the datapoints and could perform all the math using eval yourself.

--
Jesse Trucks
Minister of Magic

View solution in original post

keerthana_k
Communicator

The reason I need to approximate is I need to intrapolate the values using percentile.

0 Karma

lukejadamec
Super Champion

I don't understand why you want to approximate that which can be determined exactly with less work.

0 Karma

jtrucks
Splunk Employee
Splunk Employee

You might be able to do this using some of the external visualization libraries via the API, but there is no built-in function that would calculate that information for you unless you have the datapoints and could perform all the math using eval yourself.

--
Jesse Trucks
Minister of Magic

keerthana_k
Communicator

I used custom python script to achieve this.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...