<?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 Creating a visualization with custom data in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1587206#M10679</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I'm trying to use the visualization API to create a chart on the fly, as described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Mashups/Content/Create/Visualizations/Barchart/create-barchart.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Mashups/Content/Create/Visualizations/Barchart/create-barchart.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I don't want to use dimensions/measures already in the model for this, I would like to supply my own data directly via javascript.&lt;/P&gt;&lt;P&gt;First of all, is this even possible? And if so, how?&lt;/P&gt;&lt;P&gt;I've tried something like this:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;app.visualization.create(
	'barchart',
	[
		"=ValueList('a', 'b', 'c')", //this dimension definition works
		"???" //but how do I define the measure?? Is it possible?
	],
	{
		"showTitles": true
	}
)
.then((vis) =&amp;gt; {
	vis.show("graphContainer");
	});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've managed to create the dimension on the fly using the ValueList function, but the problem is that I don't know how to define an associated measure in a similar way. Can it even be done?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:41:34 GMT</pubDate>
    <dc:creator>master_t</dc:creator>
    <dc:date>2024-11-16T05:41:34Z</dc:date>
    <item>
      <title>Creating a visualization with custom data</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1587206#M10679</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I'm trying to use the visualization API to create a chart on the fly, as described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Mashups/Content/Create/Visualizations/Barchart/create-barchart.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/Mashups/Content/Create/Visualizations/Barchart/create-barchart.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I don't want to use dimensions/measures already in the model for this, I would like to supply my own data directly via javascript.&lt;/P&gt;&lt;P&gt;First of all, is this even possible? And if so, how?&lt;/P&gt;&lt;P&gt;I've tried something like this:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;app.visualization.create(
	'barchart',
	[
		"=ValueList('a', 'b', 'c')", //this dimension definition works
		"???" //but how do I define the measure?? Is it possible?
	],
	{
		"showTitles": true
	}
)
.then((vis) =&amp;gt; {
	vis.show("graphContainer");
	});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've managed to create the dimension on the fly using the ValueList function, but the problem is that I don't know how to define an associated measure in a similar way. Can it even be done?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1587206#M10679</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2024-11-16T05:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a visualization with custom data</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1632966#M11506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Her it what you can do&lt;/P&gt;&lt;P&gt;app.visualization.create( 'barchart', [ "=ValueList('a', 'b', 'c')","=sum(2)"], { "showTitles": true } ) .then((vis) =&amp;gt; { vis.show("&lt;SPAN&gt;graphContainer&lt;/SPAN&gt;"); });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajay Kakkar&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 10:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1632966#M11506</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2019-10-09T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a visualization with custom data</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1632984#M11509</link>
      <description>&lt;P&gt;Thanks, but what I actually wanted to do is pass in the values, not a function.&lt;/P&gt;&lt;P&gt;I managed to do this by using a measure definition like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Pick(RowNo(), "1, 2, 3, ...")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Creating-a-visualization-with-custom-data/m-p/1632984#M11509</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2019-10-09T11:20:31Z</dc:date>
    </item>
  </channel>
</rss>

