<?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>piechart to show Data</title><link>https://community.appian.com/discussions/f/user-interface/34213/piechart-to-show-data</link><description>Hi, 
 
 I am trying to show data on piechart, the field make has different data. 
 I want to segregate the data into let&amp;#39;s Ford and non Ford. 
 How can I do that?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: piechart to show Data</title><link>https://community.appian.com/thread/130403?ContentTypeID=1</link><pubDate>Sat, 02 Mar 2024 20:27:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1febe72a-c48d-438c-b88a-6bdb73c66616</guid><dc:creator>karthikr067273</dc:creator><description>&lt;p&gt;I hope you want to achieve the below requirement,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:335px;max-width:788px;" height="335" src="/resized-image/__size/1576x670/__key/communityserver-discussions-components-files/13/pastedimage1709411063608v2.png" width="788" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can not achieve this with your code. You have to write something like below,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!fordCount: a!queryRecordType(
    recordType: &amp;#39;recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle&amp;#39;,
    fields: {},
    filters: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters: {
        a!queryFilter(
          field: &amp;#39;recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle.fields.{7aa3dcda-863a-4271-9034-85821a2bd453}vehicleMake&amp;#39;,
          operator: &amp;quot;=&amp;quot;,
          value: &amp;quot;Ford&amp;quot;
        )
      },
      ignoreFiltersWithEmptyValues: true
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 100
    ),
    fetchTotalCount: true()
  ).totalCount,
  local!nonFordCount: a!queryRecordType(
    recordType: &amp;#39;recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle&amp;#39;,
    fields: {},
    filters: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters: {
        a!queryFilter(
          field: &amp;#39;recordType!{aa4ce38f-1a9d-4827-af51-e2ccb80a2c8b}AS Vehicle.fields.{7aa3dcda-863a-4271-9034-85821a2bd453}vehicleMake&amp;#39;,
          operator: &amp;quot;&amp;lt;&amp;gt;&amp;quot;,
          value: &amp;quot;Ford&amp;quot;
        )
      },
      ignoreFiltersWithEmptyValues: true
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 100
    ),
    fetchTotalCount: true()
  ).totalCount,
  {
    a!pieChartField(
      label: &amp;quot;Pie Chart&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      series: {
        a!chartSeries(label: &amp;quot;Ford&amp;quot;, data: local!fordCount),
        a!chartSeries(label: &amp;quot;Non-Ford&amp;quot;, data: local!nonFordCount)
      },
      showDataLabels: true,
      allowImageDownload: true,
      colorScheme: &amp;quot;RAINFOREST&amp;quot;,
      style: &amp;quot;DONUT&amp;quot;,
      seriesLabelStyle: &amp;quot;ON_CHART&amp;quot;,
      height: &amp;quot;MEDIUM&amp;quot;
    )
  }
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I hope this will be helpful for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: piechart to show Data</title><link>https://community.appian.com/thread/130401?ContentTypeID=1</link><pubDate>Sat, 02 Mar 2024 14:23:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6c2d2ec-c801-415e-929f-f2eae9154eb4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you share a screenshot of that chart?&lt;/p&gt;
&lt;p&gt;Did you try the reports builder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>