[ANALYTICS-366] [Investigate] Date format does not render correctly for first and second day of the month Created: 22/Jun/21  Updated: 26/Aug/22

Status: Open
Project: Analytics
Component/s: None
Affects Version/s: 1.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 40m
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-06-22 at 09.39.06.png     PNG File image.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: AuthorX Maintenance
Story Points: 5
Team: AuthorX

 Description   
  • Checking a/b instance or you can create fake data. See chart-6 has not format date correctly

 

  • When set up chart-6 in amchart itself without magnolia. Still see the same problem. The incorrect format should from Amchart

 

 

  • Here is real data for chart-6 : 
    {
      "series": [
        {
          "name": "variant A",
          "type": "LineSeries",
          "dataFields": {
            "valueY": "value0",
            "dateX": "date0"
          },
          "strokeWidth": "3",
          "tooltipText": "{name}: [bold]{valueY}[/]"
        },
        {
          "name": "variant B",
          "type": "LineSeries",
          "dataFields": {
            "valueY": "value1",
            "dateX": "date1"
          },
          "strokeWidth": "3",
          "tooltipText": "{name}: [bold]{valueY}[/]"
        }
      ],
      "xAxes": [
        {
          "type": "DateAxis",
          "dataFields": {},
          "renderer": {
            "labels": {
              "truncate": true
            },
            "grid": {
              "location": 0
            },
            "maxLabelPosition": 0.99
          },
          "dateFormats": {
            "day": "dd.MM.yy"
          },
          "dateFormatter": {
            "inputDateFormat": "dd.MM.yy"
          },
          "id": "xaxe"
        }
      ],
      "yAxes": [
        {
          "type": "ValueAxis",
          "dataFields": {},
          "renderer": {
            "labels": {
              "truncate": true
            },
            "grid": {
              "location": 0
            },
            "maxLabelPosition": 0.99
          },
          "dateFormats": {},
          "id": "yaxe"
        }
      ],
      "cursor": {
        "type": "XYCursor"
      },
      "colors": {
        "step": 4
      },
      "data": [
        {
          "value1": "6.17",
          "value0": "3.40",
          "date1": "28.05.21",
          "date0": "28.05.21"
        },
        {
          "value1": "4.63",
          "value0": "3.26",
          "date1": "29.05.21",
          "date0": "29.05.21"
        },
        {
          "value1": "6.17",
          "value0": "4.19",
          "date1": "30.05.21",
          "date0": "30.05.21"
        },
        {
          "value1": "6.88",
          "value0": "3.27",
          "date1": "31.05.21",
          "date0": "31.05.21"
        },
        {
          "value1": "7.94",
          "value0": "4.88",
          "date1": "01.06.21",
          "date0": "01.06.21"
        },
        {
          "value1": "7.38",
          "value0": "4.70",
          "date1": "02.06.21",
          "date0": "02.06.21"
        },
        {
          "value1": "7.46",
          "value0": "5.03",
          "date1": "03.06.21",
          "date0": "03.06.21"
        },
        {
          "value1": "8.79",
          "value0": "4.17",
          "date1": "04.06.21",
          "date0": "04.06.21"
        },
        {
          "value1": "5.87",
          "value0": "0.00",
          "date1": "07.06.21",
          "date0": "05.06.21"
        },
        {
          "value1": "6.44",
          "value0": "6.16",
          "date1": "08.06.21",
          "date0": "07.06.21"
        },
        {
          "value1": "3.73",
          "value0": "2.13",
          "date1": "09.06.21",
          "date0": "08.06.21"
        },
        {
          "value1": "7.14",
          "value0": "2.75",
          "date1": "10.06.21",
          "date0": "09.06.21"
        },
        {
          "value1": "6.52",
          "value0": "3.63",
          "date1": "11.06.21",
          "date0": "10.06.21"
        },
        {
          "value1": "5.14",
          "value0": "3.54",
          "date1": "14.06.21",
          "date0": "11.06.21"
        },
        {
          "value1": "5.74",
          "value0": "4.52",
          "date1": "15.06.21",
          "date0": "14.06.21"
        },
        {
          "value0": "3.30",
          "date0": "15.06.21"
        }
      ]
    }
    

AC: wanna see 01.06.21 instead of 01 Jun

 

Note: This problem is from Amchart not from Magnolia. So we can investigate from Amchart or upgrade version of Amchart to see if the bug has gone.


Generated at Sun Feb 11 23:18:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.