def _get_column_name(x):
    """Get the name of a column from Altair specification."""
    if len(x.shorthand) > 1 and x.shorthand[-2] == ':':
        return x.shorthand[:-2]
    else:
        return x.shorthand