<?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: SVG Difference between JMP and the WEB in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/611242#M81170</link>
    <description>&lt;P&gt;In JMP, you can reverse the Y axis scale in Axis Settings.&lt;/P&gt;
&lt;P&gt;In HTML, you can wrap the SVG in a &amp;lt;g&amp;gt; with scale transformation, such as:&lt;/P&gt;
&lt;PRE class="brush: html notranslate"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token attr-name"&gt;transform&lt;/SPAN&gt;&lt;SPAN class="token attr-value"&gt;&lt;SPAN class="token punctuation attr-equals"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;"&lt;/SPAN&gt;translate(0 100) scale(1 -1)&lt;SPAN class="token punctuation"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 14:41:34 GMT</pubDate>
    <dc:creator>XanGregg</dc:creator>
    <dc:date>2023-03-13T14:41:34Z</dc:date>
    <item>
      <title>SVG Difference between JMP and the WEB</title>
      <link>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/610938#M81157</link>
      <description>&lt;P&gt;I'm trying to generate a set of Standardised SVG Strings that can be used both in JSL Scripts and in a Web Application. However, from my initial investigations I notice that for the same SVG d-Path String, JSL draws the image using the BOTTOM-LEFT as the 0,0 Point and Browsers use the TOP-LEFT as the 0,0 Point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a JMP Setting to modify the 0,0 position for this use case? Otherwise I would need to store two strings for each item I want to draw, one for our JSL Developers and another for our Web Developers....which is OK but not ideal :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Troy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SVG String =&amp;nbsp;"M 0 0 h17.231 v16.915 h-17.231 z M 0.653 0 h16.578 v16.273 h-16.578 z"&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="thickey_0-1678643967077.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50949i1E2473351B695BAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thickey_0-1678643967077.png" alt="thickey_0-1678643967077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:29:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/610938#M81157</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2023-06-08T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: SVG Difference between JMP and the WEB</title>
      <link>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/611242#M81170</link>
      <description>&lt;P&gt;In JMP, you can reverse the Y axis scale in Axis Settings.&lt;/P&gt;
&lt;P&gt;In HTML, you can wrap the SVG in a &amp;lt;g&amp;gt; with scale transformation, such as:&lt;/P&gt;
&lt;PRE class="brush: html notranslate"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token attr-name"&gt;transform&lt;/SPAN&gt;&lt;SPAN class="token attr-value"&gt;&lt;SPAN class="token punctuation attr-equals"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;"&lt;/SPAN&gt;translate(0 100) scale(1 -1)&lt;SPAN class="token punctuation"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:41:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/611242#M81170</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2023-03-13T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: SVG Difference between JMP and the WEB</title>
      <link>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/611985#M81225</link>
      <description>&lt;P&gt;Thanks for your reply Xan. I was aware of the translate option but not the JMP Y-Axis Option. I guess it just comes down to making it known to our scripters and developers that they need to translate one or the other. I definitely do not want to store two strings, one for each situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In JSL, the vast majority of users will expect 0,0 on charts to be the Bottom Left, asking them to switch will be confusing. I think the translation will need to happen on the Browser side. I can publish the requirement to translate in my demo code for web browsers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see another way around it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 22:30:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SVG-Difference-between-JMP-and-the-WEB/m-p/611985#M81225</guid>
      <dc:creator>thickey</dc:creator>
      <dc:date>2023-03-14T22:30:50Z</dc:date>
    </item>
  </channel>
</rss>

