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

110
Vistas
how to use fillOpacity below to PlotLine in highchart?

I am using the below code to plot a line parallel to x-axis

chart.yAxis[0].addPlotLine({
  color: "#7cb5ec",
  id: "plotline",
  value: 700,
  width: 1,
});

please check the below screenshot.

enter image description here

But I want to fill the area below the line i.e. as in the below screenshot.

enter image description here

How Can I do this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use a plot band instead of a plotline and define color as linear gradient:

chart.yAxis[0].addPlotBand({
    color: {
        linearGradient: {
            x1: 0,
            x2: 0,
            y1: 0,
            y2: 1
        },
        stops: [
            [0, '#696ec7'],
            [1, '#c4c4c4']
        ]
    },
    from: 0,
    to: 700
});

Live demo: http://jsfiddle.net/BlackLabel/w0hy3z6e/

Docs: https://www.highcharts.com/docs/chart-design-and-style/colors

about 4 years ago · Juan Pablo Isaza 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