There's a couple of possibilities. First, the battery could be bad. Second, the charger could be bad. Lastly, the cord or micro usb port on the tablet could be bad.
Try an alternate charger/cable first. If no relief, then, try gently shifting the connector while plugged into the tablet to see...