legend

showLegend#

Type: boolean
Default: false

If true, a legend with the category names and colors is rendered at the top of the chart.

showLegend: true

legend.hideNonSelectableCategories#

Type: boolean
Default: false

Set this property to true to hide non selectable categories in the legend. A non selectable category is a category for which there are no selectable objects on the chart.

By default, even categories without selectable objects are shown in the legend.

legend: {
hideNonSelectableCategories: true
}

legend.hideUnavailableLegendItem#

Type: boolean
Default: false

Set this property to true to hide the gray "Not Available" item in the legend:
hideUnavailableLegendItem.png

legend.hidePricing#

Type: boolean
Default: false

Set this property to true to only show category labels in the legend, without pricing information. Cannot be used in combination with legend.hideCategoryName: true.

legend: {
hidePricing: true
}

legend.hideCategoryName#

Type: boolean
Default: false

Set this property to true to only show pricing information in the legend, without the category name. Cannot be used in combination with legend.hidePricing: true.

legend: {
hideCategoryName: true
}