Jump to content

How to plot a comparison line graph from single data table with summary line comparing to details.


Go to solution Solved by David Boot-Olazabal,

Recommended Posts

Posted (edited)

I have a data table as shown in the below example. The requirement is to plot

1) a line graph with prod_day_zero_offset on y-axis and gas_prod_mcf on x-axis. 

2) One line shows Pad level summary. Average of gas_prod_mcf. The user should be able to select any pad.

3) Other lines show Well level detail of selected wells. The user should be able to select any wells. This will be different wells from different pad. Example: If the user selected P1 as pad for the line in step 2. He will be selecting wells W5 and W6 from pad P2 for these lines.

This is to compare the Pad level average to wells in other pads. 

How to accomplish this? If anyone could shed some ideas to plot this will be great help.

Data table structure
well_name pad_name gas_prod_mcf prod_day_zero_offset
W1 P1 560 0
W1 P1 909 1
W1 P1 1,230 2
W1 P1 1,228 3
W2 P1 908 0
W2 P1 1,028 1
W2 P1 170 2
W2 P1 0 3
W3 P1 102 0
W3 P1 0 1
W3 P1 200 2
W3 P1 363 3
W4 P1 0 0
W4 P1 163 1
W4 P1 475 2
W4 P1 75 3
W5 P2 500 0
W5 P2 900 1
W5 P2 1,200 2
W5 P2 1,750 3
W6 P2 550 0
W6 P2 950 1
W6 P2 1,250 2
W6 P2 1,200 3
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       

 

Edited by Selicks Cherian
Posted

Hi Selicks,

I'm not certain if I understood your preferred set up correctly, but could it be something like this scatterplot:
image.thumb.png.0761d06e858719ca7dd79f7f71b77c65.png

In this plot, the gas_prod is plotted on the x axis while the prod_day is shown on the y-axis (your #1).
Then I plotted the average of the gas_prod (vertical line in purple). The filter option will provide for the average per pad, as well as the opportunity to see the accompanying wells. And finally, the wells are listed as color coded lines, which will show the relation between the gas_prod and prod_day per well (also filtered when using the pad filter).

Let me know if this is what you want to see in your visualization.

Kind regards,

David

Posted (edited)

David,

  Thank you for trying to find a solution to my problem. The axis needs to be reversed. on x-axis prod_day_zero and on y-axis gas_prod_mcf. But that doesn't solve the problem I have. When filter to pad P1. It will filter the wells related to the Pad P1, right? That is not what I'm trying to solve. I want to select pad P1 and select wells W4 & W5. I'm trying to compare the average of gas_prod_mcf of Pad P1 to gas_prod_mcf of well W4 & W5, not to the same wells on the pad P1. That is what I'm trying to accomplish. Comparing a pad level summary to a different well that belongs to different pad. 

Thanks,

Selicks Cherian

Edited by Selicks Cherian
Posted

Hi Selicks,

Would the use of subsets be a solution for you?
When you look at the below screenshot, you see that the filter values are displayed but also the non-filtered ones (in the scatter plot). That way, you can compare the two pads:
image.thumb.png.f35fa8dd36f2aefc959ab40849c7241b.png

You can even add the 'All data' option (or instead of 'Not in current filtering'), so you have the whole data set vs the pads/wells you filtered on:
image.thumb.png.82fbde8172ac23928f7cacd430069caa.png

Kind regards,

David

Posted (edited)

David,

   The plots kind of helped but not completely. The plot you suggested gives me a trellis by subsets. What I'm trying to achieve is to have a pad level average on the same plot, something like an overlay with wells from different pad.  See the attached excel graph. Black line is average of P1 and the colored lines shows the wells from P2, is there a way to achieve the same? All those shows in a single graph without trellis.

excelss-2024-11-11 102450.jpeg

Edited by Selicks Cherian
Posted

Hi Selicks,

You can use a drop down property to select the pad you want to 'summarize'. With a custom expression for the color coding, you then show the selected pad and the other lines are the wells from the non-selected pad:
image.thumb.png.9cd73d5b3f39a47f4935fc94b117fbbe.png

Whenever you selected another pad, the chart is displaying those figures:
image.thumb.png.d17fdf55c96e65b99f368be7b8b84079.png

The color coding is based upon this custom expression:

<Case  when [pad_name]=DocumentProperty("Pad2") THEN [pad_name] ELSE [well_name] END>

The DocumentProperty("Pad2")  part refers to the drop down list in the text area (this is a property control):
image.thumb.png.d84c45ceae381faa713a9fcfdde82ac1.png

The aggregation of the gas_prod_mcf column, is an average, as this summarizes the selected pad and shows the average, and displays the individual wells properly per point in time.

Kind regards,

David

 

Posted

David,

This is exactly what I was looking for. I created the dropdown and set color by with your expression. I get the colors in Color By, but not on the graph See the below screen shot, I think I'm missing something.

screenshot-1

When I select few wells that I wanted to compare with the pad, I see only the wells in the Color By and with same color. See the below screen shot.

Spotfire.Dxp_ox00zldNAo.thumb.png.fd971eca850997ba89dc1e5d555cfbeb.png

  What did you use for Line By, Trellis, Lines & Curves, Subsets? Any data limiting? Any Show/Hide Items? I saw something in Trellis in your screen shot, don't know what the setting you were using. Any multiple filter schemes apart from page default filter.

Thanks,

Selicks Cherian

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...