<?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 Show zero percent in bar chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208592#M41908</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I build a bar chart in percent and need also to display zero percent (in the sniplet group2).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table("Test");
dt &amp;lt;&amp;lt; new column ("C", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("D", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("E", numeric, Continuous);
:C &amp;lt;&amp;lt; set values([1,2,3]);
:D &amp;lt;&amp;lt; set values([1,2,3]);
:E &amp;lt;&amp;lt; set values([1,0,0.5]);
dt &amp;lt;&amp;lt; new column ("Percent", numeric, Continuous, Format( "Percent", 15, 3 ), Formula(:E/:D));

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 454 ),
	Show Control Panel( 0 ),
	Variables( Y( :Percent ), Group X( :C ) ),
	Elements( Bar( Y, Legend( 4 ), Label( "Label by Value" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Percent",
			ScaleBox,
			{Min( -0.113265306122449 ), Max( 1.08673469387755 ), Inc( 0.2 ),
			Minor Ticks( 0 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 11:42:20 GMT</pubDate>
    <dc:creator>TWE</dc:creator>
    <dc:date>2019-05-16T11:42:20Z</dc:date>
    <item>
      <title>Show zero percent in bar chart</title>
      <link>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208592#M41908</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I build a bar chart in percent and need also to display zero percent (in the sniplet group2).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table("Test");
dt &amp;lt;&amp;lt; new column ("C", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("D", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("E", numeric, Continuous);
:C &amp;lt;&amp;lt; set values([1,2,3]);
:D &amp;lt;&amp;lt; set values([1,2,3]);
:E &amp;lt;&amp;lt; set values([1,0,0.5]);
dt &amp;lt;&amp;lt; new column ("Percent", numeric, Continuous, Format( "Percent", 15, 3 ), Formula(:E/:D));

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 454 ),
	Show Control Panel( 0 ),
	Variables( Y( :Percent ), Group X( :C ) ),
	Elements( Bar( Y, Legend( 4 ), Label( "Label by Value" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Percent",
			ScaleBox,
			{Min( -0.113265306122449 ), Max( 1.08673469387755 ), Inc( 0.2 ),
			Minor Ticks( 0 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 11:42:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208592#M41908</guid>
      <dc:creator>TWE</dc:creator>
      <dc:date>2019-05-16T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero percent in bar chart</title>
      <link>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208620#M41910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12970"&gt;@TWE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not aware of a way to force JMP to display the label for a truly 0 value. It's a bit of a workaround, but what I've done in the past is add a tiny amount to a value so that jmp will round to 0 and display that rounded value. For instance, using your example, by setting the value of :E[2] to 0.000000000000001 rather than 0, the 0% label displays on the graph:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 = New Table("Test");
dt &amp;lt;&amp;lt; new column ("C", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("D", numeric, Continuous);
dt &amp;lt;&amp;lt; new column ("E", numeric, Continuous);
:C &amp;lt;&amp;lt; set values([1,2,3]);
:D &amp;lt;&amp;lt; set values([1,2,3]);
:E &amp;lt;&amp;lt; set values([1,0.000000000000001,0.5]);
dt &amp;lt;&amp;lt; new column ("Percent", numeric, Continuous, Format( "Percent", 15, 3 ), Formula(:E/:D));

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 454 ),
	Show Control Panel( 0 ),
	Variables( Y( :Percent ), Group X( :C ) ),
	Elements( Bar( Y, Legend( 4 ), Label( "Label by Value" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Percent",
			ScaleBox,
			{Min( -0.113265306122449 ), Max( 1.08673469387755 ), Inc( 0.2 ),
			Minor Ticks( 0 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 13:08:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208620#M41910</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-05-16T13:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero percent in bar chart</title>
      <link>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208631#M41912</link>
      <description>&lt;P&gt;Another possible approach can be found in this link:&lt;/P&gt;
&lt;P&gt;&lt;A title="Bars with 0 observations" href="https://community.jmp.com/t5/Discussions/force-all-histogram-levels-on-bar-graph-even-if-count-0/m-p/195336#M41641" target="_self"&gt;https://community.jmp.com/t5/Discussions/force-all-histogram-levels-on-bar-graph-even-if-count-0/m-p/195336#M41641&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should apply to percents, but I have not tried that.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 13:45:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208631#M41912</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2019-05-16T13:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero percent in bar chart</title>
      <link>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208633#M41913</link>
      <description>Thanks this works well!</description>
      <pubDate>Thu, 16 May 2019 13:36:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-zero-percent-in-bar-chart/m-p/208633#M41913</guid>
      <dc:creator>TWE</dc:creator>
      <dc:date>2019-05-16T13:36:50Z</dc:date>
    </item>
  </channel>
</rss>

