@classmethod<EOL><INDENT>def values(cls, dataset, dim, expanded=True, flat=True, compute=True):<DEDENT>
dim = dataset.get_dimension(dim, strict=True)<EOL>if dim in dataset.vdims:<EOL><INDENT>coord_names = [c.name() for c in dataset.data.dim_coords]<EOL>data = dataset.data.copy().data<EOL>data = cls.canonicalize(dataset, data, coord_names)<EOL>return data.T.flatten() if flat else data<EOL><DEDENT>elif expanded:<EOL><INDENT>data = cls.coords(dataset, dim.name, expanded=True)<EOL>return data.T.flatten() if flat else data<EOL><DEDENT>else:<EOL><INDENT>return cls.coords(dataset, dim.name, ordered=True)<EOL><DEDENT>
Returns an array of the values along the supplied dimension.