[OJS 3.1] Question about graph number

I have seen that some numerical values of the graph have the point

05

and others the integer

27

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 the statistics graph:

Link graph

thanks for support.! Bye!

Tiziano

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.? :thinking:

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