folkehelseinstituttet / Fhi.Frontend.Demo

MIT License
2 stars 1 forks source link

FHI Angular Highcharts: Incorrect date format #573

Closed proand closed 1 month ago

proand commented 1 month ago

Description

Several diagram types formats date incorrectly, see Fig. 2 below.

Acceptance Criteria

Given:

  1. Same test data as below
  2. Test case set up in demo app example "Highcharts with menu"

    For test on localhost: just checkout second last commit to get the test scenario above.

Then:

  1. Go to https://dev-designsystem.fhi.no/developer/components/highcharts#highcharts-with-menu
  2. Check that diagram (table) looks like Fig. 1
  3. Select line diagram
  4. Check that diagram looks like Fig. 2, but with same date formatting as in diagram type table
  5. Repeat 3 and 4 with all available diagram types

Supplementary information

Test data:

[{
  name: 'Helgelandssykehuset  |  Blodsykdommer (hematologi)',
  data: [
    {
      name: '30.04.2020',
      y: 36,
    },
    {
      name: '30.04.2021',
      y: 25,
    },
    {
      name: '31.08.2020',
      y: 36,
    },
    {
      name: '31.08.2021',
      y: 57,
    },
    {
      name: '31.12.2020',
      y: 18,
    },
    {
      name: '31.12.2021',
      y: 46,
    },
  ],
}]

Fig. 1

image

Fig. 2

image