Skip to main content


A histogram.


  • data | object (required): object of value arrays. Default: none.
  • variable | string (required): variable to display. Default: none.
  • group | (string|Factor): grouping variable. Default: none.
  • groupMode | string: whether to overlay grouped histograms on top of each other (Overlay) or in separate plots next to each other (Facets). Default: 'Overlay'.
  • displayDensity | boolean: controls whether to display density values instead of counts on the y-axis. Default: false.
  • densityType | string: when displaying densities, one can either overlay a parametric distribution (Normal, Uniform, or Exponential) or a non-parametric kernel density estimate (Data-driven). Default: none.
  • bandwidthAdjust | number: manual adjustment of bandwidth of kernel density (applicable only when densityType is set to Data-driven). Default: 1.
  • binStrategy | string: binning strategy (Automatic, Select # of bins, or Set bin width). Default: 'Automatic'.
  • nBins | number: custom number of bins. Default: none.
  • nCols | number: number of columns when displaying a facetted grouped histogram. Default: none.
  • xBins | {start,size,end}: object with start, size, and end properties governing binning behavior. Default: {}.


Live Editor
Last updated on by Planeshifter