All Questions
2
questions
0
votes
1
answer
48
views
How to Display Values Next to Legend in React Pie Chart? Getting 'Undefined' Error
I am trying to display value next to legend, but I am getting undefined.
Debugged but no luck, can you let me know how to fix it.
Providing my code snippet and stackblitz below
https://stackblitz.com/...
0
votes
0
answers
501
views
How to move label text of pie chart to newline in chartjs
import React from 'react';
import { Chart as ChartJS,ChartOptions, ArcElement, Tooltip, Legend } from 'chart.js';
import { Pie } from 'react-chartjs-2';
import { Box } from '@mui/material';
ChartJS....