<?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 when i use graph builder to plot Bar chart, how do I display a decimal? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/186142#M40463</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;thank you very much for your time.&lt;/P&gt;&lt;P&gt;when i use graph builder to plot Bar chart, i want to show the data mean value.&lt;/P&gt;&lt;P&gt;but if i select"label by value", n&lt;SPAN&gt;umbers are integers. How do I display a decimal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bar.PNG" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16135i23DC800B0F0BE022/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar.PNG" alt="bar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 02:01:59 GMT</pubDate>
    <dc:creator>Yu</dc:creator>
    <dc:date>2019-03-12T02:01:59Z</dc:date>
    <item>
      <title>when i use graph builder to plot Bar chart, how do I display a decimal?</title>
      <link>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/186142#M40463</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;thank you very much for your time.&lt;/P&gt;&lt;P&gt;when i use graph builder to plot Bar chart, i want to show the data mean value.&lt;/P&gt;&lt;P&gt;but if i select"label by value", n&lt;SPAN&gt;umbers are integers. How do I display a decimal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bar.PNG" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16135i23DC800B0F0BE022/image-size/large?v=v2&amp;amp;px=999" role="button" title="bar.PNG" alt="bar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 02:01:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/186142#M40463</guid>
      <dc:creator>Yu</dc:creator>
      <dc:date>2019-03-12T02:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: when i use graph builder to plot Bar chart, how do I display a decimal?</title>
      <link>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/186221#M40466</link>
      <description>&lt;P&gt;Hmmm, I am wondering which version of JMP you are using the bar heights&amp;nbsp; and the labels do not seem to match the left, Y, Axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know of a point and click method to specify a format for the Bar or Boxplot labels. If your version allows you to Add &amp;gt; Caption, You can create a graph like the one displayed below without scripting.&amp;nbsp; Captions seem to show smarter formatting, than labels. If the format of the Y variable (weight for the example below) is Fixed with 0 decimals, the caption mean will be reported with 1 decimal. If the format of Y was Fixed with 2 decimals then the caption mean would have 3 decimals. If the format is best then each group has different formats, based upon "Best."&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The steps to create this and the script can be found below.&amp;nbsp; With JSL you can create a script to add a custom label to each bar, but to keep it current with exclusions, the scripting becomes more advanced.&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="image.png" style="width: 627px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16136i9644A55FEE531B3C/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;Steps:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Drag Y variable to the Y axis.&lt;/LI&gt;
&lt;LI&gt;Right click in the graph and select &lt;STRONG&gt;Points&lt;/STRONG&gt; and &lt;STRONG&gt;Change&lt;/STRONG&gt; to Bar&lt;/LI&gt;
&lt;LI&gt;Right click in the graph and select &lt;STRONG&gt;Add Caption&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Right click in the graph and select &lt;STRONG&gt;Customize&lt;/STRONG&gt;. The click on &lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;then click on the &lt;STRONG&gt;Font&lt;/STRONG&gt; button and select&lt;STRONG&gt; Bold&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Drag the nominal varaible to the X group area at the top. For this example, drag column age.&amp;nbsp; Note all the bars have bolded Means.&lt;/LI&gt;
&lt;LI&gt;Right click on the X Group Area and select &lt;STRONG&gt;X Group Edge&lt;/STRONG&gt;, select &lt;STRONG&gt;Bottom&lt;/STRONG&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Note that the format for column weight was Fixed&amp;nbsp; width=5 and decimals=0, so the mean has exactly 1 decimal point in the caption.&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( 534, 454 ),
	Show Control Panel( 0 ),
	X Group Edge( "Bottom" ),
	Variables( Y( :weight ), Group X( :age ) ),
	Elements( Bar( Y, Legend( 1 ) ), Caption Box( Y, Legend( 2 ) ) )
);

tseg = gb &amp;lt;&amp;lt; Xpath("//FrameBox//TextSeg");
tseg &amp;lt;&amp;lt;  {Font( "Segoe UI", 8, "Bold" )};

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Attached is a script that demonstrates customizing boxplots. It does not have the added code to manage exclusions ( it requires a row state handler). It demonstrates some of the steps required to figure out placement and formatting of custom labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:23:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/186221#M40466</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-03-12T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: when i use graph builder to plot Bar chart, how do I display a decimal?</title>
      <link>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/191232#M41022</link>
      <description>&lt;P&gt;thank&amp;nbsp; you very much&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 01:21:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/when-i-use-graph-builder-to-plot-Bar-chart-how-do-I-display-a/m-p/191232#M41022</guid>
      <dc:creator>Yu</dc:creator>
      <dc:date>2019-04-04T01:21:32Z</dc:date>
    </item>
  </channel>
</rss>

