OptionalaccessibilityOptionalanimationsboolean to disable animations (enabled by default)
OptionalcanvasOptionalcoloroptions related to color scales
Optionalgradient?: { colors?: string[]; enabled?: boolean }Optionalcolors?: string[]hex color array e.g. ['#fff', '#000', ...]
Optionalenabled?: booleanOptionalpairing?: { numberOfVariants?: number; option?: number }use a carbon dataviz preset color palette put the index (selection of which variant)
OptionalnumberOfVariants?: numberthe number of color variants in the palette (defaults to using the number of data groups in the given data)
Optionaloption?: numberthe option number of the color paring
Optionalscale?: objectOptionaldataoptions related to charting data
OptionalgroupMapsTo?: stringidentifier for data groups
Optionalloading?: booleanused to simulate data loading in skeleton way
OptionalselectedGroups?: string[]options related to pre-selected data groups Remains empty if every legend item is active or dataset doesn't have the data groups.
OptionaldonutOptionalexperimentalwhether this type of chart is experimental
OptionalfileOptionalfileName?: string | ((type: "jpg" | "png" | "csv") => string)the number of color variants in the palette (defaults to using the number of data groups in the given data)
OptionalgetOptional function to generate the fill color based on datasetLabel, label, and/or data
OptionalgetOptional function to determine whether is filled based on datasetLabel, label, and/or data
OptionalgetOptional function to generate the stroke color based on datasetLabel, label, and/or data (note) - not all chart types support the stroke color (e.g. wordcloud)
OptionalheightOptionally specify a height for the chart
Optionallegendlegend configuration
OptionallocaleLocale configuration
OptionalpieOptionalalignment?: stringOptionallabels?: { enabled?: boolean; formatter?: (data: any) => string }OptionalsortFunction?: (OptionalvalueMapsTo?: stringidentifier for value key in your charting data defaults to value
Optionalresizableboolean to prevent the container from resizing
Optionalstylestylesheet options
Optionalprefix?: stringoptional prefixing string for css classes (defaults to 'cc')
Optionaltabularoptions related to table data customization
OptionalthemeOptionally specify a theme for the chart
OptionaltitleOptionally specify a title for the chart
Optionaltoolbartoolbar configurations
Optionaltooltiptooltip configuration
OptionalwidthOptionally specify a width for the chart
options specific to donut charts