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

171
Vistas
Apache Echart Stacked Bars

I'm trying to make a stacked bar with apache echart, the problem is that i want to stack them by scope vertically and not horizontally... I would like that, each bar represents one scope and the values that the scope contains. I tried to group the values by scope but, when I apply it, it divides them horizontally and not vertically....

series: [
  {
    name: 'core',
    type: 'bar',
    stack: 'total',
    label: {
      show: true
    },
    emphasis: {
      focus: 'series'
    },
    data: data.CORE.map(item => {
      return{
        value: item.tCo2,
        name: item.name,
        label: {
          show: true,
          formatter: '{b}'
      },
      }
    })
  },
  {
    name: 'down',
    type: 'bar',
    stack: 'total',
    label: {
      show: true
    },
    emphasis: {
      focus: 'series'
    },
      data: data.DOWNSTREAM.map(item => {
      return{
        value: item.tCo2,
        name: item.name,
        label: {
          show: true,
          formatter: '{b}'

      },
      }
    
    })
  },

I grouped them by scope but I still can't apply, here is a small ex: https://gitlab.com/DavinaDena/reactechart Thanks for your help :'l

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