import { CChartBar } from '@coreui/react-chartjs'
// or
import CChartBar from '@coreui/react-chartjs/src/CCharts'
PropertyDescriptionTypeDefault
classNameA string of all className you want applied to the base component.string-
customTooltipsEnables custom html based tooltips instead of standard tooltips.booleantrue
dataThe data object that is passed into the Chart.js chart (more info).ChartData<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> | ((canvas: HTMLCanvasElement) => ChartData<...>)-
fallbackContentA fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions.React.ReactNode-
getDatasetAtEventProxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event.(dataset: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void-
getElementAtEventProxy for Chart.js getElementAtEvent. Calls with single element array and triggering event.(element: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void-
getElementsAtEventProxy for Chart.js getElementsAtEvent. Calls with element array and triggering event.(elements: InteractionItem[], event: React.MouseEvent<HTMLCanvasElement>) => void-
heightHeight attribute applied to the rendered canvas.number150
idID attribute applied to the rendered canvas.string-
optionsThe options object that is passed into the Chart.js chart._DeepPartialObject<CoreChartOptions<keyof ChartTypeRegistry> & ElementChartOptions<keyof ChartTypeRegistry> & PluginChartOptions<...> & DatasetChartOptions<...> & ScaleChartOptions<...>>-
pluginsThe plugins array that is passed into the Chart.js chart (more info)Plugin<keyof ChartTypeRegistry, AnyObject>[]-
redrawIf true, will tear down and redraw chart on all updates.booleanfalse
widthWidth attribute applied to the rendered canvas.number300
wrapperPut the chart into the wrapper div element.booleantrue
On this page