Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

338
Vistas
How to remove space below semi donut chart in Apexcharts?

I am trying to show semi donut chart using Apexcharts. I want it to be responsive so I've set its height and width to auto, but it is still taking so much of extra space after donut and it's effecting my whole dashboard. Any idea how to remove this extra space?

Here's my current chart configuration.

      const options: ApexOptions = {
    chart: {
      type: "donut",
      height: "auto",
      width: "auto",
      parentHeightOffset: 0,
      sparkline: {
        enabled: true,
      },
      redrawOnWindowResize: true,
      redrawOnParentResize: true,
      events: {
        mounted: chart => {
          chart.windowResizeHandler()
        },
      },
    },
    stroke: {
      width: 0,
    },
    labels: labels,
    plotOptions: {
      pie: {
        startAngle: -90,
        endAngle: 90,
        donut: {
          size: "65%",
          background: "transparent",
          labels: {
            show: true,
            name: {
              show: false,
            },
          },
        },
      },
    },
    grid: {
      padding: {
        left: 0,
        right: 0,
        bottom: 0,
      },
    },
    dataLabels: {
      enabled: false,
    },
    legend: {
      show: false,
    },
  }
  return (
    <div className="chart" style={{ height: "auto", width: "auto" }}>
      <ReactApexChart options={options} series={series} type="donut" />
    </div> )

Here's how it is showing right now

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

I think, specifying the height and width in the parent container will help you in your case like this.

<div className="chart" style={{ height: "50px", width: "50px" }}>
   <ReactApexChart options={options} series={series} type="donut"  height="100%" width="100%" />
</div>

and remove height and width form you chart Options

chart: {
   type: "donut",
   parentHeightOffset: 0,
   sparkline: {
      enabled: true,
   },
   ...
}
about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda