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