<?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 JSL How to put number(label) on line charts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672465#M86015</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hello friends, need some help.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I plotted the&lt;STRONG&gt; Line Chart&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;manual did turn on Label at Data Source. It works fine.&lt;/EM&gt; &lt;/STRONG&gt;However when I got the JSL code for this the Line plot, and run code JSL,&lt;STRONG&gt; the reading (Data Value for Y-Axis) is gone!&amp;nbsp;&lt;/STRONG&gt; :(&lt;/img&gt;&amp;nbsp; (I just got only line without number of value)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure if do we have JSL command to turn on the label (Data Value) and also how to set decimal number to some digits (2 or 3 digits) in code level?&amp;nbsp; Anyone please help on this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Left side is Line chart that I want JSL plot for me and right side is raw data CSV.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-08-30 14_51_02-Book1 - Excel.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56101iCC95DD2F9DE4CCCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-30 14_51_02-Book1 - Excel.jpg" alt="2023-08-30 14_51_02-Book1 - Excel.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;Advance thanks a lot for any solution.&amp;nbsp; /\&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 07:54:14 GMT</pubDate>
    <dc:creator>cpbatman</dc:creator>
    <dc:date>2023-08-30T07:54:14Z</dc:date>
    <item>
      <title>JSL How to put number(label) on line charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672465#M86015</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello friends, need some help.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I plotted the&lt;STRONG&gt; Line Chart&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;manual did turn on Label at Data Source. It works fine.&lt;/EM&gt; &lt;/STRONG&gt;However when I got the JSL code for this the Line plot, and run code JSL,&lt;STRONG&gt; the reading (Data Value for Y-Axis) is gone!&amp;nbsp;&lt;/STRONG&gt; :(&lt;/img&gt;&amp;nbsp; (I just got only line without number of value)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not sure if do we have JSL command to turn on the label (Data Value) and also how to set decimal number to some digits (2 or 3 digits) in code level?&amp;nbsp; Anyone please help on this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Left side is Line chart that I want JSL plot for me and right side is raw data CSV.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-08-30 14_51_02-Book1 - Excel.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56101iCC95DD2F9DE4CCCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-30 14_51_02-Book1 - Excel.jpg" alt="2023-08-30 14_51_02-Book1 - Excel.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;Advance thanks a lot for any solution.&amp;nbsp; /\&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 07:54:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672465#M86015</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2023-08-30T07:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL How to put number(label) on line charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672477#M86017</link>
      <description>&lt;P&gt;In your case (only single point per X-axis value) you should be able to get JMP to record a script to you and use that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1693383397581.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56102iC8A4A441B1F39AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1693383397581.png" alt="jthi_0-1693383397581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;More robust option would be to add second plot to your graph (float bar chart with 0 line width) and label that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1693383513379.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56103i6553C190B0165B3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1693383513379.png" alt="jthi_1-1693383513379.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Script you can run to test out how it is done and how it looks like in JMP&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(769, 776),
	Variables(X(:name), Y(:weight)),
	Elements(
		Points(X, Y, Legend(3), Summary Statistic("Mean")),
		Line(X, Y, Legend(4)),
		Bar(X, Y, Legend(5), Bar Style("Float"), Label("Label by Value"))
	),
	SendToReport(
		Dispatch({"Line"}, "", OutlineBox, {Close(0)}),
		Dispatch({"Bar"}, "", OutlineBox, {Close(0)}),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(5, Properties(0, {Line Width(0)}, Item ID("Mean", 1)))}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{DispatchSeg(BarSeg(1), {Set Width Proportion(-1)})}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 08:19:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672477#M86017</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-30T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSL How to put number(label) on line charts</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672891#M86056</link>
      <description>&lt;P&gt;Hi jthi,&lt;/P&gt;&lt;P&gt;Thanks a lot. Let me try and let you know if it work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 08:22:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-put-number-label-on-line-charts/m-p/672891#M86056</guid>
      <dc:creator>cpbatman</dc:creator>
      <dc:date>2023-08-31T08:22:24Z</dc:date>
    </item>
  </channel>
</rss>

