Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Scaling factor of statVarsObs not returned in the APi or timeline charts #618

Open
ajaits opened this issue Sep 13, 2021 · 0 comments

Comments

@ajaits
Copy link
Contributor

ajaits commented Sep 13, 2021

Describe the bug
The scaling factor in StatVarObs is not returned in the stat-var/series api or the timeline. Only the value is shown.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://autopush.api.datacommons.org/stat/series?place=country/USA&stat_var=Annual_Generation_Electricity_MainActivityProducer' or 'https://autopush.datacommons.org/tools/timeline#place=country%2FUSA&statsVar=Annual_Generation_Electricity_MainActivityProducer'
  2. The values for years are in the range of 3M, however the scaling factor of 1000000 (1M) is missing.

Expected behavior
The timeline charts should have the scaling factor in the legend or the value should have the scaling factor applied.

Screenshots
https://screenshot.googleplex.com/5jKY7YvYLDekgho

@ajaits ajaits changed the title [BUG] Scaling factor of statVarsObs now returned in the APi or timeline charts [BUG] Scaling factor of statVarsObs not returned in the APi or timeline charts Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant