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

414
Vistas
Echarts: Is there any way to add images to charts?

I'm using Echarts to create treemap. enter image description here I want to change the color of the tree to image. Like this. enter image description here

              itemStyle: {
            color: {
              image: require("./french.png"),
            },
          },

I tried to use itemStyle, but it doesn't work! Is there a better way?

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

0

You can always use the graphic component. It let's you add any graphic object to your chart with given coordinates.

enter image description here

Just check the documentation of this component to know how to use it. https://echarts.apache.org/en/option.html#graphic

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