No that is illegal. The law specifically says you can’t offer a product that requires another product in order to be useful.
The charger has to be included for free. They can ask the customer to decline taking the charger but they can’t have it unavailable.