Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda