Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Cómo mover las etiquetas de datos al centro en los gráficos de Apex de reacción

¿Cómo puedo colocar etiquetas de datos de gráficos circulares en el centro?

Aquí está mi gráfico circular. ingrese la descripción de la imagen aquí

Los valores de la etiqueta de datos se pegan en el borde del gráfico. ¿Cómo puedo moverlos un poco hacia el centro?

Aquí está mi código.

 import React from "react"; import Chart from "react-apexcharts"; const TopAttackVector = () => { return ( <div className="font"> <Chart className="mx-96" type="pie" width={450} height={250} series={[30, 30, 30]} options={{ labels: [ "Stolen Credentials", "Business Disruption", "Data Compromise", ], colors: ["#ce9f2c", "#062341", "#00BFFF", "#229466"], dataLabels: { enabled: true, offsetX: 30, style: { fontSize: "16px", fontFamily: "Helvetica, Arial, sans-serif", fontWeight: "bold", }, }, stroke: { width: 0, }, legend: { fontSize: "14px", fontWeight: "bold", itemMargin: "left", }, }} /> </div> ); }; export default TopAttackVector;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambie el offset de dataLabels en plotOptions https://apexcharts.com/docs/options/plotoptions/pie/#dataLabelsOffset

 plotOptions: { pie: { dataLabels: { offset: -50, }, } }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!