Closed jalaj711 closed 1 year ago
Currently, when you access the stat endpoints (label.get_stats, wallet.get_stats and user.get_stats), it will simply omit the values for which no value exists.
label.get_stats
wallet.get_stats
user.get_stats
For example:
"weekly":[{"week":1,"count":4,"spent":160},{"week":2,"count":8,"spent":788}]
...which leads to graphs like these:
However, it should include all the values even if they are zero. The data from API should be like:
"weekly":[{"week":1,"count":4,"spent":160},{"week":2,"count":8,"spent":788},{"week":3,"count":0,"spent":0},{"week":4,"count":0,"spent":0}]
Fixed in 9c6bbfae09b973a57ee194e65393534a4680c900.
Graphs are better now. :)
Currently, when you access the stat endpoints (
label.get_stats
,wallet.get_stats
anduser.get_stats
), it will simply omit the values for which no value exists.For example:
...which leads to graphs like these:
However, it should include all the values even if they are zero. The data from API should be like: