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

202
Vistas
How do I use svg in plotly.js instead of the accepted string markers?

In plotly.js you can specify DOM element, data, layout, etc... So, in the data object, along other properties there is marker: {symbol: []} property available which let's one specify the desired shape marker. This property only accepts strings and numbers, see here, representing a limited number of options. I want to use an svg icon instead of the accepted strings and numbers.

Example from the docs:

Plotly.newPlot(
    'myDiv', 
    data: {
        ...,
        marker: {
            symbol: // here only allowed to use number and string but I want to use svg
        },
        ...
    }, 
    layout
);

There is a property shapes inside layout that allows the use of svg and I read somewhere that I can somehow use that to populate trace marker. This is where I read this: link to comment suggesting the above idea.

How can I use svg icons instead of just string and numbers?

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