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

140
Vistas
Fill gaps in chart.js chart in chrome mac os

1

There are gaps when rendering the graph in the chrome browser on mac os, everything is fine in other browsers. Breaks appear due to the addition of smooth lines using tension in datasets and does not depend on what value is set. With the animation turned off, gaps also appear and does not depend on the gradient. Maybe someone has come across this problem and can suggest a solution.

const data = {
labels,
datasets: [
    {
        fill: true,
        // @TODO: replace with real data from the back
        data: labels.map(() => Math.floor(Math.random() * 5000)),
        borderWidth: 4,
        borderColor: '#8766E2',
        pointRadius: 0,
        pointBackgroundColor: '#FFFFFF',
        backgroundColor: (context: ScriptableContext<'line'>) => {
            const ctx = context.chart.ctx;
            const gradient = ctx.createLinearGradient(0, 0, 0, 340);
            gradient.addColorStop(0, 'rgba(135, 102, 226, 0.5)');
            gradient.addColorStop(1, 'rgba(255, 255, 255, 0)');
            return gradient;
        },
        pointHoverBorderColor: '#8766E2',
        pointHoverRadius: 6,
        pointHoverBorderWidth: 4,
        tension: 0.3,
    },
],};
about 4 years ago · Juan Pablo Isaza
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