<?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: Capabilities API - barGrouping error message. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Capabilities-API-barGrouping-error-message/m-p/2050123#M1222970</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/220832"&gt;@hkung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you create a basic mashup from dev-hub do you see the same issue?&lt;/P&gt;
&lt;P&gt;From the code above it shows "barGroupings" instead of "barGrouping"&lt;/P&gt;
&lt;P&gt;If you are making references to other js files or have extensions that also can cause sometimes problems in Mashups, so best option is to isolate the issue, if we beilieved that setting the property to "grouped" fails, try to recreate the issue on a basic mashup where there are no other things involved and verify the outcome. It is also suggested to create a basic chart&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have some documentation for barGrouping and some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Mashups/Content/Sense_Mashups/Create/Visualizations/Barchart/create-barchart.htm#anchor-6" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Mashups/Content/Sense_Mashups/Create/Visualizations/Barchart/create-barchart.htm#anchor-6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/barchart-properties.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/barchart-properties.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also keep in mind to adjust the qmode accordingly if you are changing between the both, that information is also mentioned in the first link provided above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"qMode": "K"&amp;nbsp; for stacked&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"qMode": "S" for grouped&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vis.setOptions(&lt;/P&gt;
&lt;P&gt;{"title": "Sample Chart Stacked",&lt;BR /&gt;"qHyperCubeDef": {&lt;BR /&gt;"qMode": "K"&lt;BR /&gt;},&lt;BR /&gt;barGrouping:{grouping: "stacked"}&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;vis.show("QV02");&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I tested with a basic bar chart.&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 14:36:43 GMT</pubDate>
    <dc:creator>NadiaB</dc:creator>
    <dc:date>2023-03-16T14:36:43Z</dc:date>
    <item>
      <title>Capabilities API - barGrouping error message.</title>
      <link>https://community.qlik.com/t5/QlikView/Capabilities-API-barGrouping-error-message/m-p/2045926#M1222867</link>
      <description>&lt;P&gt;I have a bar-chart visualization that is grouped as 'stacked'.&amp;nbsp;&lt;BR /&gt;In qliks data exploration menu, it seems I can click on Group and the visualization will recategorize itself.&amp;nbsp;&lt;BR /&gt;Trying to mimic the same behaviour with `&amp;lt;qlik-visual-web-component&amp;gt;` and the Capability API.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;vis.setOptions({
  barGroupings: { grouping: 'grouped' }
});&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This code is working when I go from 'grouped' to 'stacked', so I don't believe there is anything wrong with how I am using the API.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I get this error from the qlik library when selecting 'grouped'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;react_devtools_backend.js:2655 TypeError: Cannot read properties of undefined (reading '0')
at sn-bar-chart.241c50021f55ee709bb1.js:2:324129
at Object.itemOffset (sn-bar-chart.241c50021f55ee709bb1.js:2:324250)
at area (sn-bar-chart.241c50021f55ee709bb1.js:2:324575)
at Object.getArea (sn-bar-chart.241c50021f55ee709bb1.js:2:327577)
at Object.initialize (sn-bar-chart.241c50021f55ee709bb1.js:2:329911)
at Object.initialize (sn-bar-chart.241c50021f55ee709bb1.js:2:333255)
at x (sn-bar-chart.241c50021f55ee709bb1.js:2:563718)
at Array.&amp;lt;anonymous&amp;gt; (sn-bar-chart.241c50021f55ee709bb1.js:2:567013)
at 5698.e8619504c5dfffdf795a.js:2:195916
at Array.forEach (&amp;lt;anonymous&amp;gt;)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Is there something else I am missing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 23:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capabilities-API-barGrouping-error-message/m-p/2045926#M1222867</guid>
      <dc:creator>hkung</dc:creator>
      <dc:date>2023-03-06T23:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Capabilities API - barGrouping error message.</title>
      <link>https://community.qlik.com/t5/QlikView/Capabilities-API-barGrouping-error-message/m-p/2050123#M1222970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/220832"&gt;@hkung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you create a basic mashup from dev-hub do you see the same issue?&lt;/P&gt;
&lt;P&gt;From the code above it shows "barGroupings" instead of "barGrouping"&lt;/P&gt;
&lt;P&gt;If you are making references to other js files or have extensions that also can cause sometimes problems in Mashups, so best option is to isolate the issue, if we beilieved that setting the property to "grouped" fails, try to recreate the issue on a basic mashup where there are no other things involved and verify the outcome. It is also suggested to create a basic chart&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have some documentation for barGrouping and some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Mashups/Content/Sense_Mashups/Create/Visualizations/Barchart/create-barchart.htm#anchor-6" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Mashups/Content/Sense_Mashups/Create/Visualizations/Barchart/create-barchart.htm#anchor-6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/barchart-properties.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/barchart-properties.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also keep in mind to adjust the qmode accordingly if you are changing between the both, that information is also mentioned in the first link provided above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"qMode": "K"&amp;nbsp; for stacked&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"qMode": "S" for grouped&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vis.setOptions(&lt;/P&gt;
&lt;P&gt;{"title": "Sample Chart Stacked",&lt;BR /&gt;"qHyperCubeDef": {&lt;BR /&gt;"qMode": "K"&lt;BR /&gt;},&lt;BR /&gt;barGrouping:{grouping: "stacked"}&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;vis.show("QV02");&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that I tested with a basic bar chart.&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 14:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capabilities-API-barGrouping-error-message/m-p/2050123#M1222970</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2023-03-16T14:36:43Z</dc:date>
    </item>
  </channel>
</rss>

