Replaces XAxisConfig.unit with value.
value
XAxisConfig withUnit(String value) => copyWith(unit: value);