Bar Chart
Bar chart.
Options
- data |
object (required): object of value arrays. Default:none. - variable |
(string|Factor) (required): variable to display. Default:none. - group |
(string|Factor): grouping variable. Default:none. - yvar |
string: optional variable used for the column heights (in conjunction withsummary). Default:none. - summary |
string: name of statistic to compute foryvarand to be displayed as bar height for each category (eitherMin,Max,Mean,Median,Sum, ...). Default:none. - horizontal |
boolean: whether to display bars horizontally. Default:false. - stackBars |
boolean: when grouping, controls whether to stack bars on top of each other. Default:false. - relative |
boolean: whether to calculate relative frequencies inside each group. Default:false. - totalPercent |
boolean: whether to display overall bars as relative frequencies. Default:false. - xOrder |
string: eithertotal,category,min,max,mean, ormedian. Default:none. - direction |
string: how to order bars alongside x-axis (ascendingordescending). Default:'ascending'.
Examples
- Minimal
- Grouped
- Descending Order
- Relative Stacked Bars
Live Editor
Result
ReferenceError: Provider is not defined