statisticssweden / PxWeb

Web application for disseminating statistical tables
https://www.scb.se/pxweb
Apache License 2.0
33 stars 23 forks source link

pxweb2023v1 error in chart #643

Open larpSTATGL opened 3 months ago

larpSTATGL commented 3 months ago

Describe the bug

charts in pxweb2023v1 does not render correctly

This saved query shows a line:

https://bank.stat.gl:443/sq/804cae2c-a28c-4a26-b7cc-f283acfb13d5

Data range in table is from 5.2 to 5,4

The px file has:

DECIMALS=2; SHOWDECIMALS=0; PRECISION[da]("nøgletal","Børneenheder pr. børnepersonale")=1;

It seems the rounding is on SHOWDECIMALS and not take PRECISION into account

Can it be fixed, please?