<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Column Chart Configuration in interface</title><link>https://community.appian.com/discussions/f/user-interface/38509/column-chart-configuration-in-interface</link><description>Hi Friends, 
 I have a requirement for an interface that consists of a column chart and a filter with top 1 and top 2 values. 
 I am using a record field for grouping, so it is giving 10 columns in the chart. However, when I select top 1 in the filter</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Column Chart Configuration in interface</title><link>https://community.appian.com/thread/145285?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 14:34:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9bff969-affb-4376-9040-1faa15ec9cd8</guid><dc:creator>goddativ5526</dc:creator><description>&lt;p&gt;Thank you Komal Jain and Chaitanya ,It is working as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column Chart Configuration in interface</title><link>https://community.appian.com/thread/145262?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 07:08:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:813976c5-72c2-4f97-9e86-aa43044974dc</guid><dc:creator>Komal Jain</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/goddativ5526"&gt;goddativ5526&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;posting on behalf of &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the solution for your issue&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1739343940669v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1739343962556v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(

  local!data:index(

    a!queryRecordType(

      recordType:&amp;lt;your record&amp;gt;,

      fields: a!aggregationFields(

        groupings: {

          a!grouping(

            field:&amp;lt;record field for grouping&amp;gt;,

            alias: &amp;quot;categoryId_grouping2&amp;quot;

          )

        },

        measures: {

          a!measure(

            function: &amp;quot;COUNT&amp;quot;,

            field: &amp;lt;Record field for count&amp;gt;,

            alias: &amp;quot;id_count_measure1&amp;quot;

          )

        }

      ),

      pagingInfo: a!pagingInfo(

        sort: a!sortInfo(

          field: &amp;quot;id_count_measure1&amp;quot;,

          ascending: false()

        ),

        startIndex: 1,

        batchSize: 100

      )

    ).data,

    if(

      a!isNullOrEmpty(ri!ruleIn),

      {},

      enumerate(ri!ruleIn) + 1

    ),

    {}

  ),

  {

    a!dropdownField(

      choiceLabels: {&amp;quot;Top 1&amp;quot;,&amp;quot;Top 2&amp;quot;},

      choiceValues: {1, 2},

      label: &amp;quot;Select&amp;quot;,

      labelPosition: &amp;quot;ABOVE&amp;quot;,

      placeholder: &amp;quot;--- Select a Value ---&amp;quot;,

      value: ri!ruleIn,

      saveInto: {ri!ruleIn},

      searchDisplay: &amp;quot;AUTO&amp;quot;,

      validations: {}

    ),

    a!columnChartField(

      label: &amp;quot;Column Chart&amp;quot;,

      categories: {local!data.categoryId_grouping2},

      series: {a!chartSeries(data:local!data.id_count_measure1)},

      stacking: &amp;quot;NONE&amp;quot;,

      showLegend: true,

      showTooltips: true,

      labelPosition: &amp;quot;ABOVE&amp;quot;,

      allowImageDownload: true,

      colorScheme: &amp;quot;RAINFOREST&amp;quot;,

      height: &amp;quot;MEDIUM&amp;quot;,

      xAxisStyle: &amp;quot;STANDARD&amp;quot;,

      yAxisStyle: &amp;quot;STANDARD&amp;quot;,

      refreshAfter: &amp;quot;RECORD_ACTION&amp;quot;

    )

  }

)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column Chart Configuration in interface</title><link>https://community.appian.com/thread/145260?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 06:59:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:562d3a3a-6a1b-41fd-9d21-ebb0ec5d1f58</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/goddativ5526"&gt;goddativ5526&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will have to get rid of the record data from the data parameter of the column chart component and group the data in a separate local variable. Later you will have to use the series parameter of the column chart to build your column chart.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Use the below example expression&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: index(
    a!queryRecordType(
      recordType: recordType!YourRecordType,
      fields: a!aggregationFields(
        groupings: {
          a!grouping(
            field: &amp;quot;recordField1&amp;quot;,
            alias: &amp;quot;categoryId_grouping2&amp;quot;
          )
        },
        measures: {
          a!measure(
            function: &amp;quot;COUNT&amp;quot;,
            field: &amp;quot;recordField2&amp;quot;,
            alias: &amp;quot;id_count_measure1&amp;quot;
          )
        }
      ),
      pagingInfo: a!pagingInfo(
        sort: a!sortInfo(
          field: &amp;quot;id_count_measure1&amp;quot;,
          ascending: false()
        ),
        startIndex: 1,
        batchSize: 100
      )
    ).data,
    if(
      a!isNullOrEmpty(ri!ruleIn),
      {},
      enumerate(ri!ruleIn) + 1
    ),
    {}
  ),
  {
    a!dropdownField(
      choiceLabels: { &amp;quot;Top 1&amp;quot;, &amp;quot;Top 2&amp;quot; },
      choiceValues: { 1, 2 },
      label: &amp;quot;Select&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
      value: ri!ruleIn,
      saveInto: { ri!ruleIn },
      searchDisplay: &amp;quot;AUTO&amp;quot;,
      validations: {}
    ),
    a!columnChartField(
      label: &amp;quot;Column Chart&amp;quot;,
      categories: {},
      series: {
        a!chartSeries(data: local!data.id_count_measure1)
      },
      stacking: &amp;quot;NONE&amp;quot;,
      showLegend: true,
      showTooltips: true,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      allowImageDownload: true,
      colorScheme: &amp;quot;RAINFOREST&amp;quot;,
      height: &amp;quot;MEDIUM&amp;quot;,
      xAxisStyle: &amp;quot;STANDARD&amp;quot;,
      yAxisStyle: &amp;quot;STANDARD&amp;quot;,
      refreshAfter: &amp;quot;RECORD_ACTION&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:56px;max-height:56px;max-width:177px;" height="56" src="/resized-image/__size/354x112/__key/communityserver-discussions-components-files/13/pastedimage1739343527436v1.png" width="176" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:72px;max-height:72px;max-width:228px;" height="72" src="/resized-image/__size/456x144/__key/communityserver-discussions-components-files/13/pastedimage1739343553878v2.png" width="227" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Column Chart Configuration in interface</title><link>https://community.appian.com/thread/145257?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 06:56:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae56bbce-2f8c-4df1-a035-54645d87ab55</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please share the code for this interface, and ...&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1739343369702v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>