Dashboards & Visualizations

How to draw mutiple histogram (with density curve) charts together?

DS904458
Explorer

Hi,

 

I need draw multiple histogram charts together(lined up like trellis) in one table.

So I could compared multiple distributions at the same time.

 

I have a search that will get multiple products' test result.

Let's say I test 3 products A, B, C.

Product A has 500 results, passed range is between -5~5, Max(result) = 8, min(result) = -6.

B has 350 results, passed range is between -1~1, Max(result) = 1.5, min(result) = -1.2.

C has 420 results, passed range is between 0~2, Max(result) = 2.2, min(result) = 0.3.

I need draw histogram that has result on X axis, count on Y axis, with Density curve on it.

I also need mark the Upper and Lower Limit line on every histogram, from bottom to the top on Y axis.

Basically I need chart like this, with additional upper and lower limit lines. And put mutiple histograms in one panel.

https://stackoverflow.com/questions/64467644/add-density-curve-on-the-histogram

 

 

And the bins number is fixed, let's say 10.

Under this condition. The interval of bin will be dynamic. Every product's histograms bin will have different intervals.

In this example, A's interval will be around 1.4.

B's interval will be around 0.27.

C's interval will be around 0.19 (but C's histogram's X axis range will be around 0~2.2, due to the lower limit line is 0 on X axis).

Labels (3)
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...