<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Add/Customize a Border (Outline) to Bar Charts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913660#M107357</link>
    <description>&lt;P&gt;you can adjust the oder of the individual element:&amp;nbsp;&lt;BR /&gt;right click into the graph and change the order:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1763305559416.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87171iC26E466589099EB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1763305559416.png" alt="hogi_0-1763305559416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If there is just one plot type, just add 20 and customize them.&lt;/P&gt;
&lt;P&gt;Graph Builder is orders of magnitude more flexible / powerful than people might think at first glance. This is the trick:&lt;BR /&gt;a smooth transition from very easy drag and drop to highly customized graphs.&lt;BR /&gt;With&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Set Marker Draw Expr&lt;/FONT&gt;&amp;nbsp; you already got in tough with one very elaborate feature - but there are many more features.&lt;BR /&gt;No need to use another plotting tool.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Nov 2025 15:09:11 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-11-16T15:09:11Z</dc:date>
    <item>
      <title>How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913503#M107343</link>
      <description>&lt;P&gt;Hello JMP Community,&lt;/P&gt;
&lt;P&gt;I would like to add an outline/border around each bar in a bar chart and customize its width. How can I achieve this in JMP?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As shown in the image below , I would like to add a border or outline around each bar.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87087i2520AFB87900B7C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example.png" alt="example.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've heard of a workaround that involves overlaying two bar charts to simulate an outline. However, this method doesn't seem to allow for customization of the outline's width.&lt;BR /&gt;Is there a way, either through the Graph Builder interface or by editing a script, to apply an outline to each bar and independently change its color and width?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am currently using JMP Student Edition 19.&lt;/P&gt;
&lt;P&gt;Than&lt;SPAN&gt;k you in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 04:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913503#M107343</guid>
      <dc:creator>Yo_ITO</dc:creator>
      <dc:date>2025-11-15T04:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913514#M107344</link>
      <description>&lt;P&gt;I think using second bar chart should be ok solution, but it will require some work as you would have to create extra column to get heights correct and then modify width proportion. This has been done with that method&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1763186233232.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87088i001F370FD60A1C97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1763186233232.png" alt="jthi_0-1763186233232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is exmple script you can run and then explore how the graph has been built (order of barcharts has been changed, width proportion is modified, color is changed and so on...)&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Column("Mean[height][age]",
	Numeric,
	"Continuous",
	Formula(Col Mean(:height, :age) + 1)
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(656, 549),
	Show Control Panel(0),
	Variables(
		X(:age),
		Y(:height),
		Y(:"Mean[height][age]"n, Position(1)),
		Overlay(:age)
	),
	Elements(
		Bar(X, Y(1), Legend(6), Bar Style("Stacked")),
		Bar(X, Y(2), Legend(7), Bar Style("Stacked"))
	),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				7,
				Base(0, 0, 0, Item ID("12", 1)),
				Base(1, 0, 1, Item ID("13", 1)),
				Base(2, 0, 2, Item ID("14", 1)),
				Base(3, 0, 3, Item ID("15", 1)),
				Base(4, 0, 4, Item ID("16", 1)),
				Base(5, 0, 5, Item ID("17", 1)),
				Type Properties(0, "Bar", {Fill Color(0)}),
				Properties(0, {Fill Color(0)}, Item ID("12", 1)),
				Properties(1, {Fill Color(0)}, Item ID("13", 1)),
				Properties(2, {Fill Color(0)}, Item ID("14", 1)),
				Properties(3, {Fill Color(0)}, Item ID("15", 1)),
				Properties(4, {Fill Color(0)}, Item ID("16", 1)),
				Properties(5, {Fill Color(0)}, Item ID("17", 1))
			)}
		),
		Dispatch({}, "Graph Builder", FrameBox,
			{Reorder Segs({1, 2, 4}), DispatchSeg(
				BarSeg(1),
				{Set Width Proportion(0.7)}
			)}
		),
		Dispatch({}, "400", LegendBox,
			{Legend Position({6, [0, 1, 2, 3, 4, 5], 7, [-1, -1, -1, -1, -1, -1]})}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sat, 15 Nov 2025 06:00:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913514#M107344</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-15T06:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913515#M107345</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp; has a good solution.&amp;nbsp; I have a tendency to use the JMP graphic primitives that allow you to directly draw lines and rectangles with the ability to color and define thicknesses.&lt;/P&gt;
&lt;P&gt;See&amp;nbsp; &amp;nbsp; Add Graphic Script&amp;nbsp; &amp;nbsp;in the Scripting Index and Scripting Guide for documentation and examples of how to do this.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 06:06:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913515#M107345</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-11-15T06:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913516#M107346</link>
      <description>&lt;P&gt;Other (good) options would be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Using Graphic Script. You have to know how many bars you have, and I think you cannot get that information from BarSeg object. So, it is easier to do with supporting marker added to graph (it can be hidden from final plot)&lt;/LI&gt;
&lt;LI&gt;Use Marker Draw Expression. Does require adding marker, it is more difficult to implement, but is most likely more robust option&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I don't have time to write-out these options now, but they do exist&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 06:08:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913516#M107346</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-15T06:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913519#M107347</link>
      <description>&lt;P&gt;Had time to create the graphic script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(656, 549),
	Show Control Panel(0),
	Variables(X(:age), Y(:height)),
	Elements(
		Bar(X, Y, Legend(4)),
		Points(X, Y, Legend(5), Summary Statistic("Mean"))
	),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				5,
				Type Properties(0, "Marker", {Transparency(0)}),
				Properties(0, {Transparency(0)}, Item ID("Mean", 1))
			)}
		)
	)
);

fb = Report(gb)[FrameBox(1)];

fb &amp;lt;&amp;lt; Add Graphics Script(Function({this}, // can be laggy as it is a graphic script with a loop
	ms = this &amp;lt;&amp;lt; Find Seg(MarkerSeg(1));
	xs = ms &amp;lt;&amp;lt; Get X Values;
	ys = ms &amp;lt;&amp;lt; Get Y Values;
	sideshift = 0.27;
	
	For(i = 1, i &amp;lt;= N Items(xs), i++,
		Pen Size(10); // Width of the line
		Pen Color("Black");
		Rect(xs[i] - sideshift, ys[i], xs[i] + sideshift, -1, 0);
	);
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1763187474845.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87089i143F3453EFBBD5DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1763187474845.png" alt="jthi_0-1763187474845.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is Marker Draw Expr&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(656, 549),
	Show Control Panel(0),
	Variables(X(:age), Y(:height)),
	Elements(
		Bar(X, Y, Legend(4)),
		Points(X, Y, Legend(5), Summary Statistic("Mean"))
	),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				5,
				Type Properties(0, "Marker", {Transparency(0)}),
				Properties(0, Item ID("Mean", 1))
			)}
		)
	)
);

fb = Report(gb)[FrameBox(1)];
seg = (fb &amp;lt;&amp;lt; FindSeg(Marker Seg(1)));
seg &amp;lt;&amp;lt; Set Marker Draw Expr(
	Function({this seg, this row, x, y, size, row state},
		Pen Size(10); // Width of the line
		Pen Color("Black");
		Rect(x - 0.27, y, x + 0.27, -1, 0);
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1763187791955.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87090iDAADC3521E2F30D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1763187791955.png" alt="jthi_1-1763187791955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 06:23:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913519#M107347</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-15T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913544#M107349</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Marker Draw Expr example does not work correctly in my install of JMP 19.&amp;nbsp; The Transparency default appears to be set to 0 for the marker.&amp;nbsp; The below simple change allows for the rectangle to be displayed properly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(656, 549),
	Show Control Panel(0),
	Variables(X(:age), Y(:height)),
	Elements(
		Bar(X, Y, Legend(4)),
		Points(X, Y, Legend(5), Summary Statistic("Mean"))
	),
	SendToReport(
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				5,
				Type Properties(0, "Marker", {Transparency(0)}),
				Properties(0, Item ID("Mean", 1))
			)}
		)
	)
);

fb = Report(gb)[FrameBox(1)];
seg = (fb &amp;lt;&amp;lt; FindSeg(Marker Seg(1)));
seg &amp;lt;&amp;lt; Set Marker Draw Expr(
	Function({this seg, this row, x, y, size, row state},
	show(x,y);
		Pen Size(10); // Width of the line
		Pen Color("Black");
		transparency(1); // Needed for JMP 19
		Rect(x - 0.27, y, x + 0.27, -1, 0);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Nov 2025 13:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913544#M107349</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-11-15T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913550#M107350</link>
      <description>&lt;P&gt;If a &lt;STRONG&gt;thin&lt;/STRONG&gt;&amp;nbsp;line is OK for you as border, it's super easy: just add a second bar graph with&lt;FONT face="courier new,courier"&gt;&amp;nbsp;pattern = "none" &lt;/FONT&gt;and adjust the color to e.g. black.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1763218979649.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87116iCCECA62A57569882/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1763218979649.png" alt="hogi_0-1763218979649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Size( 469, 365 ),
	Summary Statistic( "Median" ),
	Variables( X( :age ), Y( :height ), Overlay( :sex ), Color( :sex ) ),
	Elements(
		Bar( X, Y, Bar Style( "Stacked" ) ),
		Bar( X, Y, Legend( 2 ), Bar Style( "Stacked" ) )
	),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				2,
				Properties(
					0,
					{Fill Color( 0 ), Fill Pattern( "none" )},
					Item ID( "F", 1 )
				),
				Properties(
					1,
					{Fill Color( 0 ), Fill Pattern( "none" )},
					Item ID( "M", 1 )
				)
			)}
		)
	)
);
&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Nov 2025 15:04:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913550#M107350</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-15T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913657#M107356</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your detailed responses. It was very helpful. But there is one more thing I'd like to do.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I use Set Marker Draw Expr to draw a bar border, it is drawn on the top layer.&lt;BR /&gt;Consequently, when I add error bars or individual data points (via a dot plot), the custom border is drawn over them.&lt;BR /&gt;Is there a way to control the drawing order (layer) of the border so that it appears behind the data points?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For highly customized graphing, do people typically use scripting languages like R, or dedicated software such as GraphPad Prism?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 14:45:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913657#M107356</guid>
      <dc:creator>Yo_ITO</dc:creator>
      <dc:date>2025-11-16T14:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913660#M107357</link>
      <description>&lt;P&gt;you can adjust the oder of the individual element:&amp;nbsp;&lt;BR /&gt;right click into the graph and change the order:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1763305559416.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87171iC26E466589099EB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1763305559416.png" alt="hogi_0-1763305559416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If there is just one plot type, just add 20 and customize them.&lt;/P&gt;
&lt;P&gt;Graph Builder is orders of magnitude more flexible / powerful than people might think at first glance. This is the trick:&lt;BR /&gt;a smooth transition from very easy drag and drop to highly customized graphs.&lt;BR /&gt;With&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;Set Marker Draw Expr&lt;/FONT&gt;&amp;nbsp; you already got in tough with one very elaborate feature - but there are many more features.&lt;BR /&gt;No need to use another plotting tool.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 15:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913660#M107357</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-16T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Add/Customize a Border (Outline) to Bar Charts</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913685#M107360</link>
      <description>&lt;P&gt;Draw your chart with the new borders and the error bars.&amp;nbsp; Then right click on the graph and select Custom.&amp;nbsp; It will bring up a dialog box where you can select the error bars and move them to the front.&amp;nbsp; Close the dialog box and then go to the red triangle and select save script.&amp;nbsp; You can then examine the script it produced and you will see what is necessary to move the error bars to the front using jsl.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 20:35:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Add-Customize-a-Border-Outline-to-Bar-Charts/m-p/913685#M107360</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-11-16T20:35:59Z</dc:date>
    </item>
  </channel>
</rss>

