Leaderboard reference

Rank among categories

Overview

📖 Learn More about the Leaderboard here.

📖 Find examples on the Leaderboard here.

Parameters

Required

You must fill these parameters to produce a Leaderboard

parameters label type description (placeholder | tooltip)
label   string (Column of dataset expected) Column containing bar label |
legend     |
meta     |
value   string (Column of dataset expected) Column containing bar value |
dataset   string |
metaSerie     |

Optional

You can let these parameters unset if you do not need them

parameters label type description (placeholder | tooltip)
recycleColors Recycle groups colors boolean | Reuse groups color when chart data changes (filters or requesters)
sparklines Sparklines object | Add a line to represent the trend of the value for each labelMake sure you have define an historical datasetfrom the dataset editor menu.Learn more right here
sparklines/date   string (Column of dataset expected) Column containing the time dimension |
sparklines/value   string (Column of dataset expected) Column containing the line value |
sparklines/prefix   string Type in text | OptionalAdd a prefix to value display
sparklines/showMissingValues Show missing values boolean | Display missing values as blank/white linesBy default missing values are filtered outto display a continuous line
sparklines/commonScatter Common scale boolean | Use the same scale for all sparklines (y axis)
sparklines/forceLexicalOrder Automatic date ordering boolean | Set to false to disable lexical reordering of ordinal dates
sparklines/legend   string Type in a legend | Optional
sparklines/dateFormat Date display format string Describe how to display the date | OptionalUse d3 time format (like ‘%Y’ to display just years)
sort   string |
variation   string (Column of dataset expected) Column containing variation values |
packsOrder Packs order   | use it to order packs
variationLegend Variation legend string Enter the legend for your variation |
rank Display rank for sorted bars boolean |
style Custom CSS class string amazing-class | Set a customm CSS class to target this specific chart with CSS
groupsOrder Groups order   | Use it to order groups
mobileSize Mobile Size number Enter a proportion of the total mobile screen | Use on multiple charts onlyEnter a number from 0 to 1
groups   string (Column of dataset expected) Column containing grouping of bars |
childrenOrder Drill children order   | Use it to order children
packNames Display pack names boolean |
defaultSelected Bar selected by default   |
drill Drill object | Your dataset must contain both parents and children values. To do so, use our hierarchical rollup VQB step
drill/parent Parents string (Column of dataset expected) Column containing parent labels |
averageText Average legend string Enter text |
domain Scale array | Use it to define the bars scale.Choose 2 boundsIf you’re displaying %, try a 0 to 100
size Size number Enter a proportion of the total screen | Use on multiple charts onlyEnter a number from 0 to 1
labelPosition Position of the bar labels string |
packs   string (Column of dataset expected) Column containing grouping of bars |
average Average   | Add a vertical average bar
hideEmptyVariation Hide empty variations boolean |
additionalValues Additional values array | Display additional values next to the main oneWill not be displayed on mobile
tutorial Tutorial object |
tutorial/alwaysShow Always show this tutorial boolean | By default the tutorial is shown once only
tutorial/content Message string Enter your message | This will be displayed to your users
tutorial/id   string Enter an ID | Change the ID to display the tutorial again. All tutorials with the same ID will be displayed only once.

Others

This parameters are either common to all charts, or hidden from studio. You can use them in code mode, but it’s not recommended !

parameters label type description (placeholder | tooltip)
sparklines/unit   string |
sparklines/joins   array |
sparklines/datesOrder     |
sparklines/orderDates   boolean |
sparklines/units   object |
sparklines/data   object |
sparklines/data/date     |
sparklines/data/precision     |
sparklines/data/query     |
sparklines/data/postprocess   array |
sparklines/data/highlighted     |
sparklines/data/hierarchy   object |
sparklines/data/hierarchy/root   array |
sparklines/data/hierarchy/parent   array |
sparklines/data/hierarchy/id   array |
sparklines/data/history   object |
sparklines/data/history/data   object |
sparklines/data/history/data/date     |
sparklines/data/history/data/precision     |
sparklines/data/history/data/query     |
sparklines/data/history/data/postprocess   array |
sparklines/data/history/joins   array |
sparklines/data/geofeatures   object |
sparklines/data/geofeatures/join   object |
sparklines/data/geofeatures/join/on   object |
sparklines/data/geofeatures/join/on/data   string |
sparklines/data/geofeatures/join/on/features   string |
sparklines/data/geofeatures/join/how   string |
sparklines/data/geofeatures/query   [‘object’, ‘array’] |
sparklines/data/dimensions   array |
sparklines/data/order     |
sparklines/data/units   object |
sparklines/data/pipeline   array |
reverse     |
lazyLoad   boolean |
children   object |
children/root   string |
children/parent   string |
children/order     |
children/id   string |
sentiment   object |
highlighted     |
comment   string |
labelsOrder Labels order   | Use it to order labels
source   string |