<?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: Event lines and comments in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/275527#M53463</link>
    <description>&lt;P&gt;I was able to make the event lines come up. Can someone help me on how to make these comments enabled when hovered?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 01:41:18 GMT</pubDate>
    <dc:creator>bharathu</dc:creator>
    <dc:date>2020-06-26T01:41:18Z</dc:date>
    <item>
      <title>Event lines and comments in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/272418#M52982</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to map multiple "suspect" lots on our manufacturing line with "TimeStamp" in X-axis and "Process Step" in the Y-axis. I wanted to superimpose tool maintenance "events" on this data. Ideally I wanted a similar look for the "event" as shown in the post&amp;nbsp;&lt;LI-MESSAGE title="Event Lines and Comments on Control Charts" uid="29006" url="https://community.jmp.com/t5/Byron-Wingerd-s-Blog/Event-Lines-and-Comments-on-Control-Charts/m-p/29006#U29006" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am badly stuck trying to implement this on a graph builder. Any tips would be greatly appreciated. I am attaching a sample table. Trying to see if I can draw a vertical line for each date where there is an tool maintenance log by either using "Event_type" or "Event_Comment" column.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:02:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/272418#M52982</guid>
      <dc:creator>bharathu</dc:creator>
      <dc:date>2023-06-11T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Event lines and comments in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/272429#M52985</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7547"&gt;@bharathu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hmmmm, the link you provided has the solution if you can read JSL.&amp;nbsp; Below is the referenced link's data drawn using GraphBuilder. and the script. Note near the Comment Line "Shift Two" near the bottom there are two points with similar value and have Notes. The notes run into each other.&amp;nbsp; The Excel example you provided has notes for each point so the comments will collide.&amp;nbsp; You could make thes hover comments, so when you click on a point you can see the comment.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it is not clear what issues you are having:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;reading Excel,&lt;/LI&gt;
&lt;LI&gt;creating Graph Builder,&lt;/LI&gt;
&lt;LI&gt;adding the comment scripts, or&lt;/LI&gt;
&lt;LI&gt;comment collisions.&lt;/LI&gt;
&lt;/UL&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="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24561i87069A1437CD09B0/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;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open("$DOWNLOADS/Event Lines and Comments on Control Charts.jmp");


gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 742, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :ID ), Y( :Data ) ),
	Elements( Line( X, Y, Legend( 5 ) ),  Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Data",
			ScaleBox,
			{Min( -10 ), Max( 25 ), Inc( 5 ), Minor Ticks( 0 ),
			Add Ref Line( 10, "Solid", "Medium Dark Green", "UCL", 3 ),
			Add Ref Line( 17, "Solid", "Medium Dark Red", "CL", 2 ),
			Add Ref Line( 3, "Solid", "Medium Dark Red", "LCL", 2 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{Line Color( 1 ), Fill Color( 0 )},
					Item ID( "Data", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {3, [-1], 5, [-1]} ), Position( {-1, -1} )}
		)
	)
);

fb = report(gb)[FrameBox(1)];

fb &amp;lt;&amp;lt; Frame Size(1350, 400);
fb &amp;lt;&amp;lt; Add Graphics Script(
				1,
				Description( "Script" ),
				For Each Row(
					If( Is Missing( :Comment ) == 0, 
					V Line( Row() );
					Text( Right Justified, {Row(), Col Maximum( :Data ) * 1.2},:Comment ))
				);
				For Each Row(
					If( Is Missing( :Note ) == 0,
					If( :Data &amp;lt;= Col Mean( :Data ),
					Text( Right Justified,{Row(),:Data-:Data*1.1}, :Note ),
					Text( Right Justified,{Row(),:Data * 1.1}, :Note )))
				);
			);
dt &amp;lt;&amp;lt; select where(!IsMissing(:Note));
dt &amp;lt;&amp;lt; colors(red);			
dt &amp;lt;&amp;lt; clear select;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:56:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/272429#M52985</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-06-12T15:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Event lines and comments in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/273374#M53172</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry that I have not been clear in my initial post and also that I got delayed getting back to the forums. I am not trying to create a control chart in graph builder. I have attached a picture of what I am trying to achieve from the excel table I provided. I hope this picture clarifies my question. Also I would like to learn the option to have "static comments" vs. "hover comments" so that it can be used as necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!&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="Event Log.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24697i15A2B736E34D77A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Event Log.PNG" alt="Event Log.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:34:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/273374#M53172</guid>
      <dc:creator>bharathu</dc:creator>
      <dc:date>2020-06-18T18:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Event lines and comments in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/275527#M53463</link>
      <description>&lt;P&gt;I was able to make the event lines come up. Can someone help me on how to make these comments enabled when hovered?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 01:41:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Event-lines-and-comments-in-Graph-Builder/m-p/275527#M53463</guid>
      <dc:creator>bharathu</dc:creator>
      <dc:date>2020-06-26T01:41:18Z</dc:date>
    </item>
  </channel>
</rss>

