<?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: Image in a dashboard in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581031#M78797</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the best !&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 15:27:47 GMT</pubDate>
    <dc:creator>Françoise</dc:creator>
    <dc:date>2022-12-13T15:27:47Z</dc:date>
    <item>
      <title>Image in a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/580935#M78787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've insert an image in a dashboard with this script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;img = Open(
"S:\xxxxxx.jpg",
"jpg"
);

Graph Box(
FrameSize( 1400, 880 ),
X Scale( 0, 410 ),
Y Scale( 0, 100 ),
&amp;lt;&amp;lt;Add Image( image( img ), bounds( top( 90 ), Left( 10 ), bottom( 10 ), Right( 400 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do to avoid the numbers for the 2 axes or to avoid the axes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best regards&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48249i86D97192AE056361/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:04:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/580935#M78787</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2023-06-09T16:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Image in a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581027#M78795</link>
      <description>&lt;P&gt;You do not need a picture box (returned from calling Graph Box() function) to display an image. You can place it anywhere in the display tree that you are building.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
image = New Image( "$SAMPLE_IMAGES/windmap.png" );
New Window( "new image", image );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:13:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581027#M78795</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-12-13T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Image in a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581031#M78797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the best !&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:27:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581031#M78797</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2022-12-13T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Image in a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581034#M78798</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;is right. You don't need the Graph Box(). If you do want to use it you can control the axis by sending messages to the Axis boxes in the Graph Box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;img = Open( "$SAMPLE_IMAGES/windmap.png", "png" );

gb = Graph Box(
	FrameSize( 1400, 880 ),
	X Scale( 0, 501 ),
	Y Scale( 0, 429 ),
	&amp;lt;&amp;lt;Add Image( image( img ), bounds( top( 429 ), Left( 0 ), bottom( 0 ), Right( 501 ) ) )
);
gb[axisbox( 1 )] &amp;lt;&amp;lt; show major labels( 0 );
gb[axisbox( 1 )] &amp;lt;&amp;lt; show major ticks( 0 );
gb[axisbox( 1 )] &amp;lt;&amp;lt; labels( 0 );&lt;BR /&gt;
gb[axisbox( 2 )] &amp;lt;&amp;lt; show major labels( 0 );
gb[axisbox( 2 )] &amp;lt;&amp;lt; show major ticks( 0 );
gb[axisbox( 2 )] &amp;lt;&amp;lt; labels( 0 );


New Window( "my window", gb );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-12-13_10-37-44.607.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48250i6B64FDA172AEF774/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-12-13_10-37-44.607.png" alt="2022-12-13_10-37-44.607.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:38:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581034#M78798</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-12-13T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Image in a dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581138#M78801</link>
      <description>&lt;P&gt;And, if you don't like the ugly 1s and 2s, you can do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;img = Open( "$SAMPLE_IMAGES/windmap.png", "png" );

gb = Graph Box(
	FrameSize( 1400, 880 ),
	X Scale( 0, 501 ),
	Y Scale( 0, 429 ),
	&amp;lt;&amp;lt;Add Image( image( img ), bounds( top( 429 ), Left( 0 ), bottom( 0 ), Right( 501 ) ) ), 
	// during construction for Y axis...
	&amp;lt;&amp;lt;yaxis( {show major labels( 0 ), show major ticks( 0 ), labels( 0 )} )
);
// after construction for X axis...
g = gb[framebox( 1 )]; // the actual graph is a framebox, down inside the graphbuilder
g &amp;lt;&amp;lt; xaxis( show major labels( 0 ) ); // one
// or several...
g &amp;lt;&amp;lt; xaxis( {show major labels( 0 ), show major ticks( 0 ), labels( 0 )} );

New Window( "my window", gb );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I mixed-and-matched two different ideas: if you can, do the xaxis inside the graph builder launch, like the yaxis. But if you need to adjust things later, do the yaxis like the xaxis, after the graph builder.&lt;/P&gt;
&lt;P&gt;You can make an axis interactively then right-click-&amp;gt;Edit-&amp;gt;copyAxisSettings and paste that into a JSL editor to see all the possibilities that can go in the { list of axis options }. You might want to turn off the minor tick marks too, and that will show you how.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: also, &lt;LI-MESSAGE title="Add Text to a Picture" uid="513376" url="https://community.jmp.com/t5/Uncharted/Add-Text-to-a-Picture/m-p/513376#U513376" 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; if you really need to use a framebox. Otherwise, use &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp; solution, much simpler.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:51:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Image-in-a-dashboard/m-p/581138#M78801</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-12-13T16:51:43Z</dc:date>
    </item>
  </channel>
</rss>

