I've experienced this. Does your battery stats page look a bit like this?

What charger AND USB cable are you using to charge the device? While I was using the bundled LG charger at the time, I was using an old HTC MicroUSB cable I had from a previous device when I encountered this problem. When I used the bundled LG MicroUSB cable instead, the device charged normally.
LG G3 D855 (Int/UK) - Rooted Stock LG 4.4.2
HTC One M7 (801n) - S-OFF, CyanogenMod 11 (Installer)
Sony Xperia Tablet Z (SGP311) - Rooted Stock Sony 4.4.2
Asus Nexus 7 (grouper) - Stock 4.3
HTC One X+ (Int) - ViperOne 2.1 (4.2.2)
Samsung Galaxy Note N7000 - Ultimate N7000 XXLSC
HTC Desire HD - Android Revolution HD