Line
import { Line } from 'react-chartjs-2';
<Line options={...} data={...} {...props}/>Usage examples:
Also supports all standard <canvas> props.
datarequiredThe data object that is passed into the Chart.js chart See more
Type:
ChartData<"line", TData, TLabel>optionsThe options object that is passed into the Chart.js chart See more
Type:
ChartOptions<"line">· Default:{}pluginsThe plugins array that is passed into the Chart.js chart See more
Type:
Plugin<"line", AnyObject>[]· Default:[]redrawTeardown and redraw chart on every update
Type:
boolean· Default:falsedatasetIdKeyKey name to identificate dataset
Type:
string· Default:'label'fallbackContentA fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions See more
Type:
ReactNode· Default:nullupdateModeA mode string to indicate transition configuration should be used. See more
Type:
"resize" | "reset" | "none" | "hide" | "show" | "default" | "active"refType:
ForwardedRef<Chart<"line", TData, TLabel>>