[Legacy] Leaderboardcenteredaverage reference

Horizontal bar chart centered around a value


These are legacy charts and are not supported anymore. Switch to the new charts to get the latest update of the chart

None options is availaible in studio

Only in code mode

parameters label type optional description choices
comment   string      
packsLabelWidthMobile Packs labels width (Mobile) number True Enter integer to override the default size for the packs labels in pixels (The option is not used on desktop)  
labelsOrder   oneOf   Select your dataset column  
style   string True    
source   string      
packsOrder   oneOf   Select your dataset column  
sparklines/orderDates   boolean True    
sparklines/datesOrder   oneOf True Select your dataset column  
sparklines/joins   array True    
sparklines/unit   string True    
legend   anyOf      
reverse   oneOf      
average   oneOf   Enter an integer that will be used as the average (Will be used to position bars)  
hideAverageBox Hide average box boolean True    
rank Display ranks boolean True    
packsLabelWidth Packs labels width number True Enter integer (in px) (The option is not used on mobile)  
compactLabels Display labels with smaller font boolean True    
labelWidth Labels width number True Enter integer (in px) (The option is not used on mobile)  
label   string   Column containing bar label  
variationLegend Variation legend string True Enter the legend for your variation  
averageText Average legend string   Enter text to be displayed as the average legend  
drillOnLabels Allow drill on labels boolean True (Users will be able to click on labels to change the view)  
sort   string True   [u’desc’, u’asc’, None]
packs   string True Column containing grouping of bars  
variation   string True Column containing variation values  
sorter/default   string      
sorter/values   array      
sorter/legend   string      
sparklines/commonScatter Common scale boolean True (Use the same scale for all sparklines (y axis))  
sparklines/dateFormat Date display format string True Describe how to display the date (OptionalUse d3 time format (like ‘%Y’ to display just years))  
sparklines/forceLexicalOrder Automatic date ordering boolean True (Set to false to disable lexical reordering of ordinal dates)  
sparklines/value   string True Column containing the line value  
sparklines/date   string True Column containing the time dimension  
sparklines/prefix   string True Type in text (OptionalAdd a prefix to value display)  
sparklines/showMissingValues Show missing values boolean True (Display missing values as blank/white linesBy default missing values are filtered outto display a continuous line)  
sparklines/legend   string True Type in a legend (Optional)  
lazyLoad Activate lazyload boolean True (Use it to load a lot of data)  
value   string   Column containing bar value  

Code mode sample

charts: [
    "chartType": "leaderboardCenteredAverage",
    "average": "",
    "value": "",
    "label": ""