<?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: Couldn't sort by date in bar graph widget in Dashboard in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/595178#M3543</link>
    <description>&lt;P&gt;Same here. By default, the 'bar chart' is sorted by count. There is no option to sort by date.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2024 10:25:27 GMT</pubDate>
    <dc:creator>Jawahardeen</dc:creator>
    <dc:date>2024-08-18T10:25:27Z</dc:date>
    <item>
      <title>Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/592707#M3490</link>
      <description>&lt;P&gt;We c&lt;SPAN&gt;ouldn't sort by date in bar graph widget in custom dashboard. We are in XSOAR 8.7.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please assist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 05:46:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/592707#M3490</guid>
      <dc:creator>assubramania</dc:creator>
      <dc:date>2024-07-24T05:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/595178#M3543</link>
      <description>&lt;P&gt;Same here. By default, the 'bar chart' is sorted by count. There is no option to sort by date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 10:25:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/595178#M3543</guid>
      <dc:creator>Jawahardeen</dc:creator>
      <dc:date>2024-08-18T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/596028#M3583</link>
      <description>&lt;P&gt;Again, same issue. That is rather annoying that it is not possible to sort by day, week or month.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 09:32:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/596028#M3583</guid>
      <dc:creator>CorentinChasseguet</dc:creator>
      <dc:date>2024-08-27T09:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/599475#M3667</link>
      <description>&lt;P&gt;I found a solution to this at&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.13/Cortex-XSOAR-Administrator-Guide/JSON-File-Widget-Example" target="_blank"&gt;JSON File Widget Example • Cortex XSOAR Administrator Guide • Reader • Palo Alto Networks documentation portal&lt;/A&gt;.&amp;nbsp; Tested under 6.13.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create and save the widget.&amp;nbsp; Group by day, week, or month.&lt;/LI&gt;
&lt;LI&gt;Edit the widget, then click on "Download as JSON" from the edit screen.&amp;nbsp; Close the edit screen.&lt;/LI&gt;
&lt;LI&gt;Edit the JSON, to add this line to the structure:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;  "sort": [{ "field": "occurred", "asc": true }]​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;From the Widget Library, click on the + sign to add a new widget.&lt;/LI&gt;
&lt;LI&gt;Select the "Upload" option from the "+" menu, and upload the modified JSON.&lt;/LI&gt;
&lt;LI&gt;Remove the old widget from your dashboard.&lt;/LI&gt;
&lt;LI&gt;Add the updated widget to your dashboard.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Once this is done, you can add multiple copies of the sorted widget and modify them as needed.&lt;/P&gt;
&lt;P&gt;Here's the sample file:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "dataType": "incidents",
    "widgetType": "column",
    "params": {
      "groupBy": [
        "occurred(d)",
        "type"
      ],
      "valuesFormat": "abbreviated",
      "timeFrame": "days"
    },
    "dateRange": {
      "period": {
        "byFrom": "days",
        "fromValue": 7
      }
    },
    "propagationLabels": [
      "all"
    ],
    "customCalculation": {
      "operation": "count",
      "fieldName": "",
      "expression": ""
    },
    "name": "Change Sort Order In Column Chart - Sort by Date",
    "sort": [{ "field": "occurred", "asc": true }]
  }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Oct 2024 19:33:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/599475#M3667</guid>
      <dc:creator>DanZerkle</dc:creator>
      <dc:date>2024-10-03T19:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/621027#M3773</link>
      <description>&lt;P&gt;The issue seems to be resolved in XSOAR Cloud.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 12:48:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/621027#M3773</guid>
      <dc:creator>Jawahardeen</dc:creator>
      <dc:date>2024-11-17T12:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't sort by date in bar graph widget in Dashboard</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/1238886#M4156</link>
      <description>&lt;P&gt;I can confirm that this solution still works as expected. Thanks a lot for sharing it!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 08:41:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/couldn-t-sort-by-date-in-bar-graph-widget-in-dashboard/m-p/1238886#M4156</guid>
      <dc:creator>E.Ok204121</dc:creator>
      <dc:date>2025-09-26T08:41:45Z</dc:date>
    </item>
  </channel>
</rss>

