import type { CommonProps } from '@ui5/webcomponents-react-base/internal/types'; import type { CSSProperties, ReactNode } from 'react'; import type { ITimelineChartRow } from './types/TimelineChartTypes.js'; export interface TimelineChartProps extends CommonProps { /** * The data is an array of objects that is displayed on the chart. */ dataset?: ITimelineChartRow[]; /** * The total duration of the timeline. */ totalDuration?: number; /** * The total width of the chart. If not supplied, the chart's * width expands to fill its conatainer. */ width?: CSSProperties['width']; /** * The height the row of the timeline. */ rowHeight?: number; /** * Whether the timeline is a continuous timeline or broken * into discrete sections. */ isDiscrete?: boolean; /** * Defines the annonations to be applied on top on the chart. * * **Note:** Use the `TimelineChartAnnotation` component here. */ annotations?: ReactNode | ReactNode[]; /** * Toggles the visibility of the annotations applied to the chart. */ showAnnotation?: boolean; /** * Toggles the visibility of the connections of the task and milestone * items in the chart. */ showConnection?: boolean; /** * Toggles the visibility of the tooltip. */ hideTooltip?: boolean; /** * The unit of the duration of the timeline. */ unit?: string; /** * The label for the activity axis. */ rowTitle?: string; /** * The label for the title of the duration axis. */ columnTitle?: string; /** * The label for the columns if the chart is separated into discrete columns * based on if `isDiscrete` is true. If set, the length of this array * __must__ be equal to the `totalDuration`. If not set, an * array of numbers with size equal to the `totalDuration` and with values * starting from the value __start__ prop of the `TimelineChart` will be used. */ discreteLabels?: string[]; /** * The starting value of the timeline duration. */ start?: number; /** * A callback function that is applied to each value in the tick and tootltip * to format how it is displayed. */ valueFormat?: (value: number) => string; } /** * > __Experimental Component!__
* * A `TimelineChart` is a data visualization chart that can be used to represent * Gantt charts or any other timeline-based visualizations. The component has a * rich set of various properties that allows the user to: * * Zoom the chart body to see the visualizations clearer using the mouse wheel. * * Pan the zoomed chart horizonatally by holding down the left click button. * * Add annotations to highlight or illustrate different points on the timeline. * * Use annotations to create custom Timeline visualizations. * * Choose whether the timeline is discrete or continous. * * Show relationships between different items on the timeline using different * connections. * * __Note:__ Charts are custom-built __without__ defined design specifications! They use the Fiori color palette, but functionality and especially accessibility may not meet standard app requirements. * * @deprecated The component will be removed without replacement in version 3.0 of `@ui5/webcomponents-react-charts`. */ declare const TimelineChart: import("react").ForwardRefExoticComponent>; export { TimelineChart };