<?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 How to get the justGage plugin to work? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-the-justGage-plugin-to-work/m-p/1553421#M10124</link>
    <description>&lt;P&gt;I'm trying to use the justGage (&lt;A href="http://justgage.com/" target="_blank"&gt;http://justgage.com/&lt;/A&gt;) plugin in an extension but can't get it to work.&lt;/P&gt;&lt;P&gt;This is my setup:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scriptfile:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;define( [
		"qlik", 
		"text!./template.html",
		"./js/raphael-2.1.4.min",
		"./js/justgage"
	],
	function ( qlik, template ) {

		return {
			template: template,
			support: {
				snapshot: true,
				export: true,
				exportData: false
			},
			paint: function () {
				return qlik.Promise.resolve();
			},
			controller: ['$scope', function ( $scope ) {
			    g = new JustGage({
					id: "gauge",
					value: 67,
					min: 0,
					max: 100,
					title: "Visitors"
				});
			}]
		};
	} );&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Template:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div qv-extension style="height: 100%; position: relative; overflow: auto;" class="ng-scope"&amp;gt;
	&amp;lt;div id="gauge" class="200x160px"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;But as soon as I execute this code I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skärmklipp.PNG" style="width: 377px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7451i31B1862E0C97A815/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skärmklipp.PNG" alt="Skärmklipp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:17:21 GMT</pubDate>
    <dc:creator>_jespers_</dc:creator>
    <dc:date>2024-11-16T21:17:21Z</dc:date>
    <item>
      <title>How to get the justGage plugin to work?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-the-justGage-plugin-to-work/m-p/1553421#M10124</link>
      <description>&lt;P&gt;I'm trying to use the justGage (&lt;A href="http://justgage.com/" target="_blank"&gt;http://justgage.com/&lt;/A&gt;) plugin in an extension but can't get it to work.&lt;/P&gt;&lt;P&gt;This is my setup:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scriptfile:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;define( [
		"qlik", 
		"text!./template.html",
		"./js/raphael-2.1.4.min",
		"./js/justgage"
	],
	function ( qlik, template ) {

		return {
			template: template,
			support: {
				snapshot: true,
				export: true,
				exportData: false
			},
			paint: function () {
				return qlik.Promise.resolve();
			},
			controller: ['$scope', function ( $scope ) {
			    g = new JustGage({
					id: "gauge",
					value: 67,
					min: 0,
					max: 100,
					title: "Visitors"
				});
			}]
		};
	} );&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Template:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div qv-extension style="height: 100%; position: relative; overflow: auto;" class="ng-scope"&amp;gt;
	&amp;lt;div id="gauge" class="200x160px"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;But as soon as I execute this code I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skärmklipp.PNG" style="width: 377px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7451i31B1862E0C97A815/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skärmklipp.PNG" alt="Skärmklipp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-the-justGage-plugin-to-work/m-p/1553421#M10124</guid>
      <dc:creator>_jespers_</dc:creator>
      <dc:date>2024-11-16T21:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the justGage plugin to work?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-the-justGage-plugin-to-work/m-p/1553688#M10125</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;You should try load the plug-in first in the define:&lt;/P&gt;&lt;P&gt;define( [&lt;BR /&gt;"./js/raphael-2.1.4.min",&lt;BR /&gt;"qlik",&lt;BR /&gt;"text!./template.html",&lt;BR /&gt;"./js/justgage"&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;or use&amp;nbsp;raphael-amd&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;as a dependency -&amp;nbsp; &lt;A href="https://github.com/Deep-Freeze/raphael-amd" target="_blank" rel="noopener"&gt;https://github.com/Deep-Freeze/raphael-amd&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Seems that a problem exists with that plug-in.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/DmitryBaranovskiy/raphael/issues/524" target="_blank" rel="noopener"&gt;https://github.com/DmitryBaranovskiy/raphael/issues/524&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 15:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-the-justGage-plugin-to-work/m-p/1553688#M10125</guid>
      <dc:creator>PedroCunha</dc:creator>
      <dc:date>2019-03-07T15:45:50Z</dc:date>
    </item>
  </channel>
</rss>

