class_docstr: StatisticsElement provides a baseclass for Element types that
  compute statistics based on the input data, usually a density.
  The value dimension of such elements are therefore usually virtual
  and not computed until the element is plotted.
class_docstr_tok: ["StatisticsElement","provides","a","baseclass","for","Element","types","that","compute","statistics","based","on","the","input","data",",","usually","a","density",".","The","value","dimension","of","such","elements","are","therefore","usually","virtual","and","not","computed","until","the","element","is","plotted","."]
docstr: Get the type of the requested dimension.
  
  Type is determined by Dimension.type attribute or common
  type of the dimension values, otherwise None.
  
  Args:
      dimension: Dimension to look up by name or by index
  
  Returns:
      Declared type of values along the dimension
docstr_tok: ["Get","the","type","of","the","requested","dimension",".","Type","is","determined","by","Dimension.type","attribute","or","common","type","of","the","dimension","values",",","otherwise","None",".","Args",":","dimension",":","Dimension","to","look","up","by","name","or","by","index","Returns",":","Declared","type","of","values","along","the","dimension"]
code: def get_dimension_type(self, dim):
      """Get the type of the requested dimension.
  
      Type is determined by Dimension.type attribute or common
      type of the dimension values, otherwise None.
  
      Args:
          dimension: Dimension to look up by name or by index
  
      Returns:
          Declared type of values along the dimension
      """
      dim = self.get_dimension(dim)
      if dim is None:
          return None
      elif dim.type is not None:
          return dim.type
      elif dim in self.vdims:
          return np.float64
      return self.interface.dimension_type(self, dim)
  
imports: import numpy
  import param
  from ..core.data import Dataset
  from ..core.dimension import Dimension, process_dimensions
  from ..core.element import Element, Element2D
  from ..core.util import get_param_values, unique_iterator
  from .selection import Selection1DExpr, Selection2DExpr
label_desc: Use image node_id 5 for calling the StatisticsElement obj's underlying member method code with example usage: obj.get_dimension_type(dim) and returns: self, None, dim, np