In this article
BreakdownBy code block segments stacked bar chart data. Use cut, cutByMulti, date, or overlappingdate to configure chart segmentation.
The BreakdownBy code block segments the data in a stacked bar chart into its respective groups. In the figure below, the chart is divided into NPS segments.
Example of a stacked bar chart broken down by NPS segments
The code used to create the chart is presented below:
The code used to create the above chart
Examples of code to configure how the chart is segmented are presented below:
breakdownBy cut {
value,
label,
format,
}
breakdownBy cutByMulti {
value,
label,
format,
}
breakdownBy date {
value,
label,
format,
breakdownBy,
start,
end
}
breakdownBy overlappingdate {
value,
label,
format,
breakdownBy,
start,
end,
startShift,
endShift
}For details of the properties and settings, refer to widget chart in the CDL Reference Guide.