Choose Language Hide Translation Bar
Konstantinos
Community Member

Graph Builder Horizontal Duration Line

Hi,

 

I need some help to visualize horizontal duration lines in graph builder.

Therefore, I have three columns with data:

 

Column A: product type

Column B: duration cummulated

Column C: duration per product type

 

I want to illustrate on the x-axis the duration cummulated

On th y-axis, the different product types shall be illustrated.

 

The graph shall show the start and the end point for producing a specific product type.

Thereby, the production of product B starts when product A is finished, product C starts when product B is finished and so on.

 

I have attached a simplified JMP data table for better understanding. Is it possible to illustrate horizontal duration lines with the available data? 

 

Many thanks in advance for your support. @martindemel 

 

Best Regards

 

Konstantinos

 

 

 

 

 

 

 

 

 

 

2 REPLIES 2
Highlighted

Re: Graph Builder Horizontal Duration Line

I do not know if this kind of result is what you are looking for:

 

Capture.JPG

 

If so, then create a new column that contains the start of the duration. Use the cumulative result for the end. Drag the start to the X drop zone. Drag the cumulative to the same drop zone but drop it just above the axis so it joins the start. Change the element to Bar. Change the style to Interval.

Learn it once, use it forever!
Highlighted
txnelson
Super User

Re: Graph Builder Horizontal Duration Line

Here is another way of doing the chart

gantt.PNG

Names Default To Here( 1 );
dt = Current Data Table();
dt << New Column( "Min",
	Numeric,
	"Continuous",
	Format( "hr:m:s", 13, 0 ),
	Input Format( "hr:m:s", 0 ),
	Formula( :Duration cummulated - :Duration per production type )
);
dt << New Column( "Max",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Formula( :Duration cummulated ),
	Set Selected
);

dtStack = dt << Stack(
	columns( :Min, :Max ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);
dtStack:Data << format(":day:hr:m");

Graph Builder(
	Size( 543, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :Data ), Group Y( :Production Type ) ),
	Elements( Line( X, Legend( 12 ), Error Interval( "Range" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"",
			ScaleBox,
			{Label Row(
				{Automatic Tick Marks( 0 ), Show Major Labels( 0 ),
				Show Major Ticks( 0 ), Show Minor Ticks( 0 )}
			)}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				12,
				Properties( 0, {Line Width( 9 )}, Item ID( "Count", 1 ) )
			)}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "Gantt Chart" )} )
	)
);
Jim