You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
First of all thank you for this cool plugin. I would like to ask for help with it. I have a "dashboard.jsx" file that calls VendorPie (it's just a pie chart). I installed the library, but it simply does not want to add more colors to the circular articles. It depends on how I set it up, but it's usually solid red. I've tried everything, can anyone help me?
`import React, { useEffect, useState } from 'react';
import { Pie } from 'react-chartjs-2';
import autocolors from 'chartjs-plugin-autocolors';
import Chart from "chart.js/auto";
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
First of all thank you for this cool plugin. I would like to ask for help with it. I have a "dashboard.jsx" file that calls VendorPie (it's just a pie chart). I installed the library, but it simply does not want to add more colors to the circular articles. It depends on how I set it up, but it's usually solid red. I've tried everything, can anyone help me?
`import React, { useEffect, useState } from 'react';
import { Pie } from 'react-chartjs-2';
import autocolors from 'chartjs-plugin-autocolors';
import Chart from "chart.js/auto";
Chart.register(autocolors)
const VendorPie = () => {
};
export default VendorPie;
`
Beta Was this translation helpful? Give feedback.
All reactions