<?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>Inverting x axis on line chart component</title><link>https://community.appian.com/discussions/f/user-interface/37243/inverting-x-axis-on-line-chart-component</link><description>I&amp;#39;m creating a line chart where I want to display a sum of transaction amounts per last 6 months. 
 The expression for the linechart component is the following: 
 
 What I keep seeing is that if I sort the data on descending (which is what I need since</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Inverting x axis on line chart component</title><link>https://community.appian.com/thread/139340?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 05:25:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b862e259-6b2f-4d20-81a8-800bba60804f</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;Hi, you are getting only 6 data because you set the data limit as 6. Also, you keep ascending as false. Please set the data limit and ascending properly.&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/pastedimage1723181112770v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see all the data in proper manner.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Inverting x axis on line chart component</title><link>https://community.appian.com/thread/139294?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 13:31:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dba0f6d9-93c5-4bcc-9427-0e46f033d01a</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;&lt;span&gt;I am not sure whether you can fix this with the Record type or not. Other members can help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, you can try with a custom query. See the sample code for reference:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: a!queryRecordType(
    recordType: &amp;#39;recordType!{098777fc-c21b-4c7d-8d7a-b07371616f47}YD Course&amp;#39;,
    fields: {},
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 6,
      sort: a!sortInfo(field: &amp;#39;recordType!{098777fc-c21b-4c7d-8d7a-b07371616f47}YD Course.fields.{1e27585b-2faa-44f3-be46-2507e0d2fc88}createdOn&amp;#39;, ascending: true),
    )
  ).data,
  a!lineChartField(
    categories: text((local!data[&amp;#39;recordType!{098777fc-c21b-4c7d-8d7a-b07371616f47}YD Course.fields.{1e27585b-2faa-44f3-be46-2507e0d2fc88}createdOn&amp;#39;]), &amp;quot;MMMM&amp;quot;),
    series: {
      a!chartSeries(label: &amp;quot;Transactions&amp;quot;, data: local!data[&amp;#39;recordType!{098777fc-c21b-4c7d-8d7a-b07371616f47}YD Course.fields.{c8b37fe2-de65-4251-98fc-7d21a978c21d}id&amp;#39;])
    },
    label: &amp;quot;Line Chart&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    xAxisTitle: &amp;quot;Month&amp;quot;,
    yAxisTitle: &amp;quot;Amount spent&amp;quot;,
    showLegend: false(),
    showTooltips: true,
    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;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1723123856470v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>