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

188
Vistas
React Chartist tooltip not showing up

I'm trying to use react chartist tool-tip and there are no errors but nothing shows up when the chart is hovered. Also it appears to be below my DOM i have also specified it to have position of absolute, and a height and width but it doesn't display anything.

const [options, setOptions] = useState({
    showArea: true,
    showLabels: true,
    fullWidth: true,
    high: 17,
    low: 0,
    chartPadding: {
      top: 20,
      right: 0,
      bottom: 0,
      left: -40,
    },
    axisX: {
      showGrid: true,
      showLabel: true,
      labelInterpolationFnc: function (value, index) {
        return index !== 0 && index !== data.labels.length - 1 ? value : null;
      },
    },
    plugins: [
      ChartistTooltip({
        appendToBody: true,
        pointClass: "ct-line-marker",
      }),
    ],
    axisY: { showLabel: true, showGrid: false },
  });

  const drawPoint = (ctx) => {
    if (ctx.type === "point" && ctx.index === markerIndex) {
      var circle = new chartist.Svg(
        "circle",
        {
          cx: ctx.x,
          cy: ctx.y,
          r: 7,
          "ct:value": ctx.value.y,
          "ct:meta": ctx.meta,
          style: "pointer-events: all !important",
        },
        "ct-line-marker"
      );
      ctx.element.replace(circle);
    }
  };

Chart Component

        <Chartist
          listener={{
            created: createGradient,
            draw: drawPoint,
          }}
          options={options}
          data={data}
          type={type}
        />
about 4 years ago · Santiago Gelvez
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