Charge density of group IVA transition-metal dichalcogenides