Score-card reference

To display a list of metrics

Overview

📖 Learn More about the score-card here.

📖 Find examples on the score-card here.

Options

Available in studio

parameters label type optional description choices
label   string   Column containing the label of the metrics to display  
variationLegend Variation legend string True Enter the legend for your variation (Will appear like a column header on top of the variation)  
packs   string True Column containing grouping of metrics (Will add spacing between your packs of labels)  
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)  
value   string   Column containing the value of the metrics to display (Did you know your value can be a number or some text ?)  

Only in code mode

parameters label type optional description choices
comment   string      
labelsOrder   oneOf   Select your dataset column  
style   string True    
source   string      
sort   string True (Sort your labels by value) [u’desc’, u’asc’, None]
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    
reverse   oneOf      

Code mode sample

charts: [
  {
    "chartType": "score-card",
    "value": "",
    "label": ""
  }
]