I'm unable to change the position of the label to bottom in react-chart-js3 . It's now displaying on the top of the chart.
import React, { useState, useEffect } from "react";
import { Doughnut, Line, Pie } from "react-chartjs-3";
export default function UserDashboard() {
const DoughData = {
labels: ["Red", "Green", "Yellow"],
datasets: [
{
data: [300, 50, 100],
backgroundColor: ["#FF6384", "#36A2EB", "#FFCE56"],
hoverBackgroundColor: ["#FF6384", "#36A2EB", "#FFCE56"],
},
],
};
return (
<div>
<Doughnut data={DoughData} />
</div>
);
}
Pass
options
props to theDoughnut
component.Working code - https://codesandbox.io/s/wandering-snowflake-b7tgd?file=/src/tickets.js