<?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: Disable selections in charts using NebulaJS/stardust in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Disable-selections-in-charts-using-NebulaJS-stardust/m-p/2073034#M18574</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201427"&gt;@mnero&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The documentation for this is here:&lt;BR /&gt;&lt;A href="https://qlik.dev/extend/extend-qlik-visualizations/configuration/#constraints" target="_blank"&gt;https://qlik.dev/extend/extend-qlik-visualizations/configuration/#constraints&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;import { embed } from "@nebula.js/stardust";
import barchart from "@nebula.js/sn-bar-chart";
import piechart from "@nebula.js/sn-pie-chart";
import pinkishTheme from "./pinkish-theme";

const baseConfig = embed.createConfiguration({
  themes: [{
    id: 'pinkish',
    load: () =&amp;gt; Promise.resolve(pinkishTheme),
    // load: () =&amp;gt; Promise.resolve({
    //   palettes: {
    //     data: [{
    //       scale: [
    //         '#fac6e5',
    //         '#ff95d6',
    //         '#e76eb1',
    //         '#b44772',
    //       ],
    //     }],
    //   },
    // }),
  }],
  types: [
    {
      name: "bar",
      load: () =&amp;gt; Promise.resolve(barchart),
    },
    {
      name: "pie",
      load: () =&amp;gt; Promise.resolve(piechart),
    },
  ],
  context: {
    theme: 'pinkish',
    deviceType: 'auto',
    language: 'en-US',
  },
});

const noSelectionPink = baseConfig.createConfiguration({
  context: {
    theme: 'pinkish',
    constraints: {
      // active: true, // turn off interactions like zoom, scroll etc.
      // passive: true, // turn off interactions like tooltips
      select: true, // turn off selections
    },
  },
});


// render with baseConfig
baseConfig(enigmaApp).render(/*chart config*/);

// render chart with pinkish theme with no selections allowed
noSelectionPink(enigmaApp).render(/*chart config*/);
noSelectionPink(anotherEnigmaApp).render(/*chart config*/);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 20:29:40 GMT</pubDate>
    <dc:creator>rankassovitz</dc:creator>
    <dc:date>2023-05-18T20:29:40Z</dc:date>
    <item>
      <title>Disable selections in charts using NebulaJS/stardust</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Disable-selections-in-charts-using-NebulaJS-stardust/m-p/2072632#M18568</link>
      <description>&lt;P&gt;Does anyone know how to disable selections for a chart?&lt;/P&gt;
&lt;P&gt;My requirements are identical to those detailed&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Disable-selections-in-charts-using-Capability-APIs/ba-p/1469983" target="_self"&gt;here&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/App-API-and-Viz-API-noSelections-option/ba-p/1465070" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; However those solutions are for the Capabilities API and the Viz API not NebulaJS.&lt;/P&gt;
&lt;P&gt;Looking at the qlik.dev&amp;nbsp;&lt;A href="https://qlik.dev/apis/javascript/nebulajs-stardust/#%23%2Fentries%2Fembed" target="_self"&gt;embed documetation&lt;/A&gt;&amp;nbsp;I only see the options parameter in the render function, but that has no documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 20:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Disable-selections-in-charts-using-NebulaJS-stardust/m-p/2072632#M18568</guid>
      <dc:creator>mnero</dc:creator>
      <dc:date>2023-05-17T20:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disable selections in charts using NebulaJS/stardust</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Disable-selections-in-charts-using-NebulaJS-stardust/m-p/2073034#M18574</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201427"&gt;@mnero&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The documentation for this is here:&lt;BR /&gt;&lt;A href="https://qlik.dev/extend/extend-qlik-visualizations/configuration/#constraints" target="_blank"&gt;https://qlik.dev/extend/extend-qlik-visualizations/configuration/#constraints&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;import { embed } from "@nebula.js/stardust";
import barchart from "@nebula.js/sn-bar-chart";
import piechart from "@nebula.js/sn-pie-chart";
import pinkishTheme from "./pinkish-theme";

const baseConfig = embed.createConfiguration({
  themes: [{
    id: 'pinkish',
    load: () =&amp;gt; Promise.resolve(pinkishTheme),
    // load: () =&amp;gt; Promise.resolve({
    //   palettes: {
    //     data: [{
    //       scale: [
    //         '#fac6e5',
    //         '#ff95d6',
    //         '#e76eb1',
    //         '#b44772',
    //       ],
    //     }],
    //   },
    // }),
  }],
  types: [
    {
      name: "bar",
      load: () =&amp;gt; Promise.resolve(barchart),
    },
    {
      name: "pie",
      load: () =&amp;gt; Promise.resolve(piechart),
    },
  ],
  context: {
    theme: 'pinkish',
    deviceType: 'auto',
    language: 'en-US',
  },
});

const noSelectionPink = baseConfig.createConfiguration({
  context: {
    theme: 'pinkish',
    constraints: {
      // active: true, // turn off interactions like zoom, scroll etc.
      // passive: true, // turn off interactions like tooltips
      select: true, // turn off selections
    },
  },
});


// render with baseConfig
baseConfig(enigmaApp).render(/*chart config*/);

// render chart with pinkish theme with no selections allowed
noSelectionPink(enigmaApp).render(/*chart config*/);
noSelectionPink(anotherEnigmaApp).render(/*chart config*/);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 20:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Disable-selections-in-charts-using-NebulaJS-stardust/m-p/2073034#M18574</guid>
      <dc:creator>rankassovitz</dc:creator>
      <dc:date>2023-05-18T20:29:40Z</dc:date>
    </item>
  </channel>
</rss>

