Barchart reference

Vertical barchart for individual observations

Overview

📖 Learn More about the barchart here.

📖 Find examples on the barchart here.

Options

Available in studio

parameters label type optional description choices
domain   array      
tickFormat Custom date tick format (for date labels) string True Insert d3 time format (.i.e. ‘%Y’ to display just years.Click here for more info on format)  
recycleColors Recycle groups colors boolean True (when chart data changes (filters or requesters))  
label   string   Column containing bar label  
alignRightAtInit Scroll graph to the right boolean True (At initialization)  
defaultSelected Default bar selected string True (first, last, report or the name of the label)  
showValues Display all values on top of bars boolean True    
groups   string True Column containing grouping of bars  
legend Display legend boolean      
value   string   Column containing bar value  

Only in code mode

parameters label type optional description choices
comment   string      
labelsOrder   oneOf   Select your dataset column  
style   string True    
source   string      
groupsOrder   oneOf   Select your dataset column  
disableZoomIn   boolean      

Code mode sample

charts: [
  {
    "chartType": "barchart",
    "value": "",
    "label": ""
  }
]