I have seen that some numerical values of the graph have the point
and others the integer
from what is caused this difference?
Thanks for support.
Bye
Tiziano
I have seen that some numerical values of the graph have the point
and others the integer
from what is caused this difference?
Thanks for support.
Bye
Tiziano
Hi @Tiziano
Do you mean usage statistics graph? Could you maybe send the links? Maybe/probably the numbers are normalized…
Best,
Bozana
Yes, those are automatically calculated by Chart.js, I think using a nice numbers algorithm…
How can I make sure you don’t see 0.1, 0.2, 0.3 etc. but 0, 1, 2, 3, etc.?
You would need to have something like this:
ticks: {
fixedStepSize: 1
},
at this code line: pkp-lib/UsageStatsFrontendHandler.js at ojs-3_1_1-0 · pkp/pkp-lib · GitHub.
Optimal would be write a child theme (that is based on the theme you currently uses) and to somehow define/implement it there… but I am not familiar with writing the child themes… maybe you can find other posts in the forum about that…
Hi @bozana, thanks!!! It works very well.
Bye
Tiziano