<?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 Fixed line style based on name in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397085#M64785</link>
    <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if and how it is possible to always have a fixed line style/color based on a certain criteria (e.g. in the case below based on the Quarter).&lt;/P&gt;&lt;P&gt;If you take the sample data file "Australian Tourism" and plot the Room occupancy (%) versus Year you would get something like below,&lt;/P&gt;&lt;P&gt;where I changed the line style for Quarter 2 to be dashed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietVanmeerbeek_0-1625058107915.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33885iA3AF268E12438B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="PietVanmeerbeek_0-1625058107915.png" alt="PietVanmeerbeek_0-1625058107915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when I select only Quarters 2,3 and 4 the graph changes to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietVanmeerbeek_1-1625058361049.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33886i459C1247AE6ED577/image-size/large?v=v2&amp;amp;px=999" role="button" title="PietVanmeerbeek_1-1625058361049.png" alt="PietVanmeerbeek_1-1625058361049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to have Quarter 2 still in Red dashed, Quarter 3 still full green and Quarter 4 still full purple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I started looking for a solution I ended up on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/43531403/in-jmp-how-to-custom-graph-line-by-specifying-the-curve-name" target="_blank" rel="noopener"&gt;customization - In JMP, how to custom graph line by specifying the curve name? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seemed promising but somehow It seems to be valid for a bivariate plot, I am not able to implement this trick to a Graph Builder plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:15:39 GMT</pubDate>
    <dc:creator>PietVanmeerbeek</dc:creator>
    <dc:date>2023-06-11T11:15:39Z</dc:date>
    <item>
      <title>Fixed line style based on name in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397085#M64785</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if and how it is possible to always have a fixed line style/color based on a certain criteria (e.g. in the case below based on the Quarter).&lt;/P&gt;&lt;P&gt;If you take the sample data file "Australian Tourism" and plot the Room occupancy (%) versus Year you would get something like below,&lt;/P&gt;&lt;P&gt;where I changed the line style for Quarter 2 to be dashed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietVanmeerbeek_0-1625058107915.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33885iA3AF268E12438B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="PietVanmeerbeek_0-1625058107915.png" alt="PietVanmeerbeek_0-1625058107915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when I select only Quarters 2,3 and 4 the graph changes to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PietVanmeerbeek_1-1625058361049.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33886i459C1247AE6ED577/image-size/large?v=v2&amp;amp;px=999" role="button" title="PietVanmeerbeek_1-1625058361049.png" alt="PietVanmeerbeek_1-1625058361049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to have Quarter 2 still in Red dashed, Quarter 3 still full green and Quarter 4 still full purple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I started looking for a solution I ended up on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/43531403/in-jmp-how-to-custom-graph-line-by-specifying-the-curve-name" target="_blank" rel="noopener"&gt;customization - In JMP, how to custom graph line by specifying the curve name? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seemed promising but somehow It seems to be valid for a bivariate plot, I am not able to implement this trick to a Graph Builder plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:15:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397085#M64785</guid>
      <dc:creator>PietVanmeerbeek</dc:creator>
      <dc:date>2023-06-11T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed line style based on name in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397361#M64807</link>
      <description>Hi,&lt;BR /&gt;A simple solution is to assign colors to the Quarter values: Column &amp;gt; Column Properties &amp;gt; Value Colors. This will tell JMP to use your choice instead of the default colors which do change upon selecting different groups in the Local Filter as you observed.&lt;BR /&gt;&lt;BR /&gt;Let me know if that helps.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Thu, 01 Jul 2021 04:40:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397361#M64807</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-07-01T04:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed line style based on name in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397370#M64810</link>
      <description>&lt;P&gt;Thanks TS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this already is a great help and indeed very simple to apply.&lt;/P&gt;&lt;P&gt;Can something similar be done with respect to the line type? e.g. dashed,solid,etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Piet.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 07:30:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/397370#M64810</guid>
      <dc:creator>PietVanmeerbeek</dc:creator>
      <dc:date>2021-07-01T07:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed line style based on name in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/398303#M64925</link>
      <description>&lt;P&gt;Anyone who can help me with changing the line style?&lt;/P&gt;&lt;P&gt;I would think something like below, but it seems not to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Australian Tourism.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables(
		X( :Year ),
		Y( :Name( "Room occupancy rate (%)" ) ),
		Overlay( :Quarter )
	),
	Elements(
		Line( X, Y, Legend( 7 ), Row order( 0 ), Summary Statistic( "Mean" ) )
	),
	SendToReport(
		Dispatch( {}, "Year", ScaleBox, {Show Major Ticks( 0 )} ),
		Dispatch(
			{},
			"Room occupancy rate (%)",
			ScaleBox,
			{Min( 54.5305429864253 ), Max( 75 ), Inc( 5 ), Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model( 7, Properties( 3, {Line Style( "Dashed" )} ) )}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "Room occupancy rate vs. Year and Quarter" )}
		)
	)
);
reportWindow = gb &amp;lt;&amp;lt; Report;
reportWindow[ ScaleBox ] &amp;lt;&amp;lt; (Line[1] &amp;lt;&amp;lt; Line Style( Dashed ));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My thoughts were that looking at the script, changing the line style sends something to the "ScaleBox".&lt;/P&gt;&lt;P&gt;But I am doing something wrong, since it is not working and also the log file tells me this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , reportWindow[ScaleBox] &amp;lt;&amp;lt; /*###*/(Line[1] &amp;lt;&amp;lt; Line Style( Dashed )) /*###*/&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&lt;BR /&gt;reportWindow[ScaleBox] &amp;lt;&amp;lt; /*###*/(Line[1] &amp;lt;&amp;lt; Line Style( Dashed )) /*###*/&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 09:40:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fixed-line-style-based-on-name-in-Graph-Builder/m-p/398303#M64925</guid>
      <dc:creator>PietVanmeerbeek</dc:creator>
      <dc:date>2021-07-05T09:40:07Z</dc:date>
    </item>
  </channel>
</rss>

