No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

WebChartPieChartLegend

Specific legend for the Pie chart.

Referenced by: WebMapWebChart, WebMapWebGaugeChart, WebMapWebBoxPlot, WebChart, WebGaugeChart, WebBoxPlot

Properties

PropertyDetails
displayNumericValue

Indicates whether the numeric value associated to a slice is to be displayed in the legend.


If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value)


The type of this property is: boolean.

displayPercentage

Indicates whether the percentage to a slice is to be displayed in the legend.


If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as percentage (value)


The type of this property is: boolean.

labelMaxWidth

Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.


The type of this property is: number.

valueLabelMaxWidth

Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.


The type of this property is: number.

type*

Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is chartLegend.


The type of this property is: string.

visible

Determines the visibility of the content.


The type of this property is: boolean.

titleContains styling info on how the title of the legend box should be rendered
body

Contains styling info on how legend body (excluding the title) should be rendered.


Will use default styling if not provided.

position

Positions the legends at right, left, top, or bottom of the chart.


The type of this property is: string.


Must be one of the following values: bottom, left, right, top.

maxHeight

Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.


The type of this property is: null or number.

roundMarkers

Allows the legend markers to be displayed as circles. If the property is to:
- false or undefined they will be rounded rectangles
- true they will be circles


The type of this property is: boolean.