Cigarette bar chart
D3 chart
For all common D3 chart properties, refer to D3 chart API.
Chart.Cigarette
js
import { Chart } from '@semcore/ui/d3-chart';CigaretteChartProps
BaseChartProps<> & {...}| Name | Type | Description |
|---|---|---|
| tooltipTitle | string | Title text displayed in the tooltip |
| tooltipViewType | "all" | "single" | Controls whether the tooltip shows all data or single item data |
| showPercentValueInTooltip | boolean | Show percent value in tooltip |
| percentFormatter | (value: number) => number | Custom percent formatter. |
| header | Header content for the chart | |
| duration | number | Animation duration in milliseconds |
| onClick | (key: , event: ) => void | Click handler that receives the data key and event |
| minimalBarWidth | number | Minimal bar width in pixels. Default is `2`. |