folkehelseinstituttet / Fhi.Frontend.Demo

MIT License
2 stars 1 forks source link

FHI Angular Highcharts: add property for setting y-axis max/min #616

Closed proand closed 3 months ago

proand commented 3 months ago

Description

It must be possible to define y-axis max/min via FhiDiagramUnits. E.g. if unit is percent, and all data is between 0% and 100%, you don't want the y-axis to end on 110% as in the fig. 1 below.

Acceptance Criteria

  1. Go to https://dev-designsystem.fhi.no/developer/components/highcharts#highcharts-all-inclusive
  2. Select "Befolkning - inndeling per 1.1.2024 (andel)" in "Velg datasett"-dropdown, and then select diagram type line
  3. Check that max is 20% and min is 10%

Supplementary information

Fig. 1 image

proand commented 3 months ago

@stalehaugenes Added new issue as discussed 🙂