Props Reference

Detailed documentation for all component props and their usage.

Common Props

Props that are shared across all chart components.

PropTypeDefaultDescription
dataChartData[]requiredArray of data objects to display in the chart
widthnumber400Chart width in pixels
heightnumber300Chart height in pixels
themestring | object'light'Theme name ('light', 'dark') or custom theme object
classNamestring''Additional CSS classes for the chart container
styleCSSPropertiesInline styles for the chart container
loadingbooleanfalseShow loading indicator
onChartReadyfunctionundefinedCallback when chart is ready

Data Format

Understanding the data structure expected by chart components.

ChartData Interface

typescript

Multi-Series Data

typescript

Event Handlers

Available event handlers for chart interactions.

EventTypeDescription
onClick(params: any) => voidFired when chart element is clicked
onHover(params: any) => voidFired when hovering over chart elements
onLegendClick(params: any) => voidFired when legend item is clicked
onDataZoom(params: any) => voidFired when data zoom changes

Styling Props

Props for customizing chart appearance and styling.

PropTypeDefaultDescription
colorsstring[]theme colorsCustom color palette for chart elements
backgroundColorstringtransparentChart background color
gridobjectdefaultGrid configuration object
legendobject | booleantrueLegend configuration or visibility
tooltipobject | booleantrueTooltip configuration or visibility