Stackedbarchart reference

Good to visualise a breakdown by category for a whole entity

Overview

📖 Learn More about the Stackedbarchart here.

📖 Find examples on the Stackedbarchart here.

Parameters

Required

You must fill these parameters to produce a Stackedbarchart

parameters label type description (placeholder | tooltip)
groups   string (Column of dataset expected) Column containing the breakdown to display | will be displayed as colors inside the bar
label   string (Column of dataset expected) Column containing bar label |
value   string (Column of dataset expected) Column containing the value for the bars |
legend Display legend boolean |
dataset   string |

Optional

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

parameters label type description (placeholder | tooltip)
labelsOrder labels order   | use it to order labels
hideTotal Hide the total value of each bar boolean |
sort   string |
packNames Display packs names boolean | For horizontal display only
showValues Display all the values on the graph boolean | Horizontal mode only
recycleColors Recycle groups colors boolean | when chart data changes (filters or requesters)
tickFormat Custom date tick format (for date labels) string Insert d3 time format | .i.e. ‘%Y’ to display just years.Click here for more info on format
size Size number Enter a proportion of the total screen | Use on multiple charts onlyEnter a number from 0 to 1
packs   string (Column of dataset expected) Column containing grouping of bars |
crossfilter   object | Use it for masterslave configurationShould be configured on the Master chart
crossfilter/datasets Select the slave datasets array | Datasets that will be filtered on the ‘on’ column
crossfilter/on on column string (Column of dataset expected) Column existing in master and slave datasets |
packsOrder packs order   | use it to order packs
visualSelection Display rectangle around selected bar boolean |
hideEmptyGroups Hide empty groups in the legend boolean |
groupsOrder groups order   | use it to order groups
metaSerie Groups additional info   | will be displayed in the legend
tutorial Tutorial object | Help your users understand how to use the chart!This will be displayed the first time your user uses the chart
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.
tutorial/content Message string Enter your message | This will be displayed to your users
tutorial/alwaysShow Always show this tutorial boolean | By default the tutorial is shown once only
meta Bars additional info   | will be displayed in the legend
defaultSelected Default bar selected string first, last, report or the label you want to select by default | By default on first
variation   string (Column of dataset expected) Column containing variation values |
mobileSize Mobile Size number Enter a proportion of the total mobile screen | Use on multiple charts onlyEnter a number from 0 to 1
displayDirection Choose the display direction string | If your data contain negative valuestotal won’t be displayed on top of the bar

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)
comment   string |
persistentGroupColors Recycle groups colors boolean | when chart data changes (filters or requesters)
sentiment   object |
style   string |
source   string |
displayType Choose the display type string |