It's not charging itself.
The battery is just calibrating. The graph is not an accurate depiction of what is actually happening with the battery, but merely an estimation. Therefore when it feels it's "guessed" wrong it'll change.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
// LG G3 (D855) // Stock // Stock //
// HTC One (M8) // GPE Stock // Stock GPE//
// Nexus 7 (flo) // Android L // Stock//
S3(White) > M7(Red) > Note 3(Black) > Nexus 5(Black) > M8(Gunmetal)/LG G3 (Titan Grey)