Meaning : In an unmerited manner.
Example :
The team chalked up another victory, the last one quite undeservedly, in my opinion.
As deserved.
He chalked up two goals which deservedly gave Bolton their second victory of the season.