<?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 Changing one color from the legend that is set to JMP Default for multiple graphs in variability chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/629312#M82753</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is in two parts and ideally #1 can be solved, its okay if you can't figure out #2. I appreciate any and all help!&lt;/P&gt;&lt;P&gt;1. How can I make one of the categories within each legend be the color black and not the default color jmp assigns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: Make Chrysler the color black in the first legend, town car black in the second, 90 black in the third, 2 black in the fourth, and van black in the fifth?&lt;/P&gt;&lt;P&gt;2. How can I though a for loop add a legend to each variability chart. And likewise I want it to follow a certain pattern.&lt;/P&gt;&lt;P&gt;Example:In this case d airbag's legend is make, d&amp;amp;p airbags legend is model, manual belts is year, motorized belts is doors, and passive belts is size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variability Chart(
	SendToByGroup( {:"D/P"n == "Driver", :Protection == "d airbag"} ),
	Y( :Head IC ),
	SendToByGroup( {:"D/P"n == "Driver", :Protection == "d airbag"}, Y( :Head IC ) ),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d&amp;amp;p airbags"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "manual belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "Motorized belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "passive belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d airbag"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d&amp;amp;p airbags"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "manual belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "Motorized belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "passive belts"},
		Y( :Head IC )
	),
	X( :Make, :Model ),
	Show Range Bars( 0 ),
	Show Cell Means( 0 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ),
	By( :"D/P"n, :Protection ),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d airbag"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=d airbag",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Make,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d&amp;amp;p airbags"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=d&amp;amp;p airbags",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Model,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "manual belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=manual belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Year,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "Motorized belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=Motorized belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Doors,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "passive belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=passive belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Size,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d airbag"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=d airbag",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Make,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d&amp;amp;p airbags"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=d&amp;amp;p airbags",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Model,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "manual belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=manual belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Year,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "Motorized belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=Motorized belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Doors,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "passive belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=passive belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Size,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1683342621109.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52601i87D08CCD7BED1D91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1683342621109.png" alt="neelsrejan_0-1683342621109.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="neelsrejan_1-1683342636588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52602i5FACD357B53ABA3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1683342636588.png" alt="neelsrejan_1-1683342636588.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_2-1683342648377.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52603iAE3CA934D6066C8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_2-1683342648377.png" alt="neelsrejan_2-1683342648377.png" /&gt;&lt;/span&gt;&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:31:59 GMT</pubDate>
    <dc:creator>neelsrejan</dc:creator>
    <dc:date>2023-06-11T11:31:59Z</dc:date>
    <item>
      <title>Changing one color from the legend that is set to JMP Default for multiple graphs in variability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/629312#M82753</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is in two parts and ideally #1 can be solved, its okay if you can't figure out #2. I appreciate any and all help!&lt;/P&gt;&lt;P&gt;1. How can I make one of the categories within each legend be the color black and not the default color jmp assigns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: Make Chrysler the color black in the first legend, town car black in the second, 90 black in the third, 2 black in the fourth, and van black in the fifth?&lt;/P&gt;&lt;P&gt;2. How can I though a for loop add a legend to each variability chart. And likewise I want it to follow a certain pattern.&lt;/P&gt;&lt;P&gt;Example:In this case d airbag's legend is make, d&amp;amp;p airbags legend is model, manual belts is year, motorized belts is doors, and passive belts is size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Variability Chart(
	SendToByGroup( {:"D/P"n == "Driver", :Protection == "d airbag"} ),
	Y( :Head IC ),
	SendToByGroup( {:"D/P"n == "Driver", :Protection == "d airbag"}, Y( :Head IC ) ),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d&amp;amp;p airbags"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "manual belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "Motorized belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "passive belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d airbag"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d&amp;amp;p airbags"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "manual belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "Motorized belts"},
		Y( :Head IC )
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "passive belts"},
		Y( :Head IC )
	),
	X( :Make, :Model ),
	Show Range Bars( 0 ),
	Show Cell Means( 0 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ),
	By( :"D/P"n, :Protection ),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d airbag"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=d airbag",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Make,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "d&amp;amp;p airbags"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=d&amp;amp;p airbags",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Model,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "manual belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=manual belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Year,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "Motorized belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=Motorized belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Doors,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Driver", :Protection == "passive belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Driver, Protection=passive belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Size,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d airbag"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=d airbag",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Make,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "d&amp;amp;p airbags"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=d&amp;amp;p airbags",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Model,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "manual belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=manual belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Year,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "Motorized belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=Motorized belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Doors,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	),
	SendToByGroup(
		{:"D/P"n == "Passenger", :Protection == "passive belts"},
		SendToReport(
			Dispatch(
				{"Variability Gauge D/P=Passenger, Protection=passive belts",
				"Variability Chart for Head IC"},
				"Variability Chart",
				FrameBox,
				{Row Legend(
					Size,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 0 ),
					Marker Theme( "" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1683342621109.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52601i87D08CCD7BED1D91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1683342621109.png" alt="neelsrejan_0-1683342621109.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="neelsrejan_1-1683342636588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52602i5FACD357B53ABA3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1683342636588.png" alt="neelsrejan_1-1683342636588.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_2-1683342648377.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52603iAE3CA934D6066C8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_2-1683342648377.png" alt="neelsrejan_2-1683342648377.png" /&gt;&lt;/span&gt;&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:31:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/629312#M82753</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-06-11T11:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing one color from the legend that is set to JMP Default for multiple graphs in variability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/629334#M82755</link>
      <description>&lt;P&gt;Hopefully there are more simpler solutions than this very script heavy one using value colors column property, but this might get you going&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Cars.jmp");

aa_protection_legend = Associative Array("Year"); // default value Year as I won't write all of these
aa_protection_legend["d airbag"] = "Make";
aa_protection_legend["d&amp;amp;p airbags"] = "Model";


cols_to_color = Associative Array();
cols_to_color["Make"] = "Chrysler";
cols_to_color["Model"] = "Town Car";


vars = dt &amp;lt;&amp;lt; Variability Chart(
	SendToByGroup({:"D/P"n == "Driver", :Protection == "d airbag"}),
	Y(:Head IC),
	SendToByGroup({:"D/P"n == "Driver", :Protection == "d airbag"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Driver", :Protection == "d&amp;amp;p airbags"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Driver", :Protection == "manual belts"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Driver", :Protection == "Motorized belts"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Driver", :Protection == "passive belts"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Passenger", :Protection == "d airbag"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Passenger", :Protection == "d&amp;amp;p airbags"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Passenger", :Protection == "manual belts"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Passenger", :Protection == "Motorized belts"}, Y(:Head IC)),
	SendToByGroup({:"D/P"n == "Passenger", :Protection == "passive belts"}, Y(:Head IC)),
	X(:Make, :Model),
	Show Range Bars(0),
	Show Cell Means(0),
	Std Dev Chart(0),
	Points Jittered(1),
	By(:"D/P"n, :Protection)
);

dt_colors = New Table("colors", New Column("color", Numeric, Ordinal, Values(1::1000)), invisible);
Column(dt_colors, "color") &amp;lt;&amp;lt; Set Property("Value Colors", "JMP Default");
colors = Column(dt_colors, "color") &amp;lt;&amp;lt; Get Property("Value Colors");
Close(dt_colors, no save);

set_color_property = function({dt, col_name, black_val}, {uniq, color_idx, property_list},
	Summarize(dt, uniq = by(eval(col_name)));
	color_idx = 1;
	property_list = "";
	For Each({val}, uniq,
		If(val == black_val,
			colorval = "\!"" || val || "\!" = 0";
		,
			colorval = "\!"" || val || "\!" = " || char(Arg(colors[color_idx], 2));
			color_idx++;
		);
		property_list = property_list || colorval || ", ";
	);

	property_list = "{" ||Regex(property_list, ", $", "", GLOBALREPLACE) ||"}";
	
	Eval(EvalExpr(Column(dt, col_name) &amp;lt;&amp;lt; Set Property("Value Colors",
		Expr(Parse(property_list))
	)));
);

For Each({{key, val}}, cols_to_color,
	set_color_property(dt, key, val);
);


For Each({var, idx}, vars,
	rep = Report(var);
	framebox = rep[Frame Box(1)];
	
	cur_protection = Regex(rep &amp;lt;&amp;lt; get title, ".*Protection=(.+)", "\1");
	
	framebox &amp;lt;&amp;lt; Row Legend(
		Eval(aa_protection_legend[cur_protection]), 
		Color(1), 
		Color Theme(""),
		Marker(0), 
		Marker Theme(""), 
		Continuous Scale(0), 
		Reverse Scale(0), 
		Excluded Rows(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-1683356211222.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52605i75259CDAD377C976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1683356211222.png" alt="jthi_0-1683356211222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 06:57:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/629334#M82755</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-05-06T06:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing one color from the legend that is set to JMP Default for multiple graphs in variability chart</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/630385#M82854</link>
      <description>&lt;P&gt;Hi jthi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response and that's a wonderful solution that opened a lot of other things in JSL I need to learn so I appreciate the response. Just out of curiosity, you made a colors column from 1-1000 and it looks like each has a slightly unique hex code, in the case that my data has say 5000 different values, can I change the script to 5000 or is 1000 the length of the color array and colors will repeat after?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 22:31:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-one-color-from-the-legend-that-is-set-to-JMP-Default/m-p/630385#M82854</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-05-09T22:31:10Z</dc:date>
    </item>
  </channel>
</rss>

