Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 775 Bytes

chart.mdx

File metadata and controls

36 lines (27 loc) · 775 Bytes
title Chart
description The Chart component of react-chartjs-2 renders a Chart.js chart of any type in React, mixed charts included. See how to use it, its props and examples.
head
tag content
title
Chart: React Component for Any Chart Type | react-chartjs-2
prev Components

import PropsTable from '../../../components/PropsTable.astro'

Usage

import { Chart } from 'react-chartjs-2';

<Chart
  type={...}
  options={...}
  data={...}
  {...props}
/>

Usage examples:

Props

Also supports all standard <canvas> props.