Leaderboard centered average reference

Horizontal bar chart centered around a value

Overview

📖 Learn More about the Leaderboard Centered Average here.

📖 Find examples on the Leaderboard Centered Average here.

Options

Available in studio

parameters label type optional description choices
hideAverageBox Hide average box boolean True    
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  
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)  
reverse   boolean True    
value   string   Column containing bar value  

Only in code mode

parameters label type optional description choices
labelsOrder Sort order oneOf True Select asc (ascending) or desc (descending) [None, u’asc’, u’desc’]
style   string True    
packsOrder Sort order oneOf True Select asc (ascending) or desc (descending) [None, u’asc’, u’desc’]
sparklines/orderDates   boolean True    
sparklines/datesOrder   oneOf True Select your dataset column  
sparklines/joins   array True    
sparklines/unit   string True    
average   oneOf   Enter an integer that will be used as the average  

Code mode sample

charts: [
  {
    "chartType": "new-leaderboard-centered-average",
    "value": "",
    "label": ""
  }
]