diff --git a/holoviews/core/data/dictionary.py b/holoviews/core/data/dictionary.py index b8ae1d0093..e0f9e827d0 100644 --- a/holoviews/core/data/dictionary.py +++ b/holoviews/core/data/dictionary.py @@ -213,7 +213,7 @@ def values(cls, dataset, dim, expanded=True, flat=True): if np.isscalar(values): if not expanded: return np.array([values]) - values = np.full(len(dataset), values) + values = np.full(len(dataset), values, dtype=np.array(values).dtype) else: if not expanded: return util.unique_array(values)