@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
48 lines • 1.2 kB
TypeScript
import { ChartData, ChartOptions } from 'chart.js';
import { ChartType } from './ChartControl.types';
/**
* The properties for the Accessible Chart Table object
*/
export interface IAccessibleChartTableProps {
/**
* Provides a caption for the accessible table
* @default defaults to the chart's title if any
*/
caption?: string;
/**
* Allows you to overwrite the default CSS class name
* of the accessible table
*/
className?: string;
/**
* Provides a summary of the data
*/
summary?: string;
/**
The data to be displayed in the chart
@type {IChartData}
*/
data?: ChartData;
/**
The options for the chart
@type {ChartOptions}
*/
chartOptions?: ChartOptions & {};
/**
The type of chart to render
@type {ChartType}
*/
chartType: ChartType;
/** The labels as provided by the chart */
chartLabels?: string[];
/**
* Allows you to custom-render your own accessible table
*/
onRenderTable?: () => JSX.Element;
}
/**
* The state of a chart table
*/
export interface IAccessibleChartTableState {
}
//# sourceMappingURL=AccessibleChartTable.types.d.ts.map