<?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: Graph Builder: Pinned data labels for line graph of series colored by continuous variable? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707158#M89158</link>
    <description>&lt;P&gt;Is line label what you want?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1702035045179.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59452i28D89D3935039FF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1702035045179.png" alt="hogi_3-1702035045179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1702035109577.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59453i2624F8809142A83F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1702035109577.png" alt="hogi_4-1702035109577.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;dt = Open( "/C:/Program Files/JMP/JMPPROEA/18/Samples/Data/US Regional Population.jmp" );
Graph Builder(
	Size( 553, 264 ),
	Show Control Panel( 0 ),
	Show Title( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :Year ), Y( :Population ), Overlay( :Region ) ),
	Elements( Line( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties(
					2,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "Great Lakes", 1 )
				),
				Properties(
					9,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "Pacific", 1 )
				),
				Properties(
					10,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "South Atlantic", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Line Seg( "Line (Great Lakes)" ),
				Label Offset( "Name", -1, {9.88327472828701, 37772.1540027761} )
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 11:32:13 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-12-08T11:32:13Z</dc:date>
    <item>
      <title>Graph Builder: Pinned data labels for line graph of series colored by continuous variable?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707085#M89149</link>
      <description>&lt;P&gt;Hello - I'm plotting multiple series ontop of eachother in graph builder. Legend is great, but it would be really nice to have a data label at the end of each series so people don't have to have their eyes flying all over the place when seeing new data. However, when using a continuous variable in the color column, the line label setting disappears. I could just put the series in the overlay column, but then it becomes much harder to script and instead of manually putting in labels, I'd have to manually put in colors, which function as another label. Is there a way to do these labels with continuous color variables?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 04:58:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707085#M89149</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-12-08T04:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Pinned data labels for line graph of series colored by continuous variable?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707158#M89158</link>
      <description>&lt;P&gt;Is line label what you want?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1702035045179.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59452i28D89D3935039FF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1702035045179.png" alt="hogi_3-1702035045179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1702035109577.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59453i2624F8809142A83F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1702035109577.png" alt="hogi_4-1702035109577.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;dt = Open( "/C:/Program Files/JMP/JMPPROEA/18/Samples/Data/US Regional Population.jmp" );
Graph Builder(
	Size( 553, 264 ),
	Show Control Panel( 0 ),
	Show Title( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :Year ), Y( :Population ), Overlay( :Region ) ),
	Elements( Line( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties(
					2,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "Great Lakes", 1 )
				),
				Properties(
					9,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "Pacific", 1 )
				),
				Properties(
					10,
					{Line Label Properties( {Name Label( 1 )} )},
					Item ID( "South Atlantic", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(
				Line Seg( "Line (Great Lakes)" ),
				Label Offset( "Name", -1, {9.88327472828701, 37772.1540027761} )
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 11:32:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707158#M89158</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-12-08T11:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Pinned data labels for line graph of series colored by continuous variable?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707258#M89168</link>
      <description>&lt;P&gt;Do you have multiple columns in Y-axis or how are you plotting those separate lines? Using overlay should be fairly easy&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1702048734739.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59467iCCB9F04A74F955FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1702048734739.png" alt="jthi_0-1702048734739.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Script created by JMP isn't too bad&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables(X(:lot_id), Y(:NPN1), Overlay(:NPN2)),
	Elements(Smoother(X, Y, Legend(7))),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				7,
				Properties(0, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("108.83 - 113.96", 1)),
				Properties(1, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("113.96 - 115.2", 1)),
				Properties(2, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("115.2 - 116.32", 1)),
				Properties(3, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("116.32 - 117.58", 1)),
				Properties(4, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("117.58 - 121.78", 1))
			)}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and can be made "better"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lgd_server = gb &amp;lt;&amp;lt; Get Legend Server;
items = lgd_server &amp;lt;&amp;lt; Get Legend Items;
For Each({item, index}, items[1], 
	item &amp;lt;&amp;lt; Set Properties( {Line Label Properties({Name Label(1)})});
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Full example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:lot_id), Y(:NPN1), Overlay(:NPN2)),
	Elements(Smoother(X, Y, Legend(7)))
);

lgd_server = gb &amp;lt;&amp;lt; Get Legend Server;
items = lgd_server &amp;lt;&amp;lt; Get Legend Items;
For Each({item, index}, items[1], 
	item &amp;lt;&amp;lt; Set Properties( {Line Label Properties({Name Label(1)})});
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:22:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707258#M89168</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-08T15:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Pinned data labels for line graph of series colored by continuous variable?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707337#M89174</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks for y'all's replies! So the data table is in a stacked format as it's linked to another table and I need an ID column for the link. Some columns are discrete like &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;you showed, but many of these plots are series where the changed variable between series is continuous. Maybe part of the problem is that I've done some of the calculations on my own rather than let jmp do it. I'm trying to stack to data in a way that JMP doesn't seem to do (not the same as "stack" in the line properties, as that seems to rescale the data as well), I've gone ahead and just made another column that offsets the data in an absolute sense, using table variables. Then I added in some sliders to adjust the scale of those offsets. So I've gone around JMP a little bit, and that might be part of the issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59483iFBC800111A534BB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I have a couple variables that I select as "hierarchical offset variables", for lack of a better term. There is a large offset associated with the primary hierarchical variable when levels change, and and a smaller offset added when the secondary hierarchical variable changes. Because there are so many series, having a color spectrum really helps. Unfortunately, the secondary hierarchical variable, which usually makes sense as the coloring variable, is continuous, so the legend always goes continuous, and you can't specify levels as labels. I tried to put the secondary hierarchical variable into the overlay box, and just make like 2000 bins, which does guarantee every series show up and not get averaged, but then I can't specify the color gradient and it just gives random colors. The legend also would gives those bins rather than the data that's there, and that doesn't work. Maybe there's a way to force an overlay legend to return a continuous version of the coloring scheme, but I don't see it, and going in an de-check-boxing all the unused bins for the legend is also tedious. I'd like to be able to display labels and a color gradient. I suppose I could spend the time manually going through and adding labels in powerpoint, but with all of JMP's functionality, I feel like there should be a way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully I'm making sense. Feeling a little fog-headed so if this doesn't make sense, let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:52:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707337#M89174</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-12-08T18:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: Pinned data labels for line graph of series colored by continuous variable?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707495#M89182</link>
      <description>&lt;P&gt;I think you should be able to set gradient type coloring even if you use overlay&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1702122462810.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59493i5B6D2D8277A9D4EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1702122462810.png" alt="jthi_0-1702122462810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Open legend and change the color theme&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1702122501267.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59495i1DA600D8960C8335/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1702122501267.png" alt="jthi_2-1702122501267.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1702122508427.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59496iF8D4B0BF1B5CD6B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1702122508427.png" alt="jthi_3-1702122508427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:49:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pinned-data-labels-for-line-graph-of-series/m-p/707495#M89182</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-09T11:49:05Z</dc:date>
    </item>
  </channel>
</rss>

