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

368
Visualizações
Colorbar with Plotly javascript

I am using plotly with javascript to create some charts. I haven't really had much problem with this library, but i am struggling to get a decent map chart(Bubble chart).

I have set some config settings(I wont be including any data variables in this post).

const data = [
{
  type: "scattergeo",
  mode: "markers",
    colorscale: "Reds",
    colorbar: {
      thickness: 15,
      title: "Unique users per country",
      showticksuffix: "last",
    },
  },
  name: "europe data",
}];

const layout = {
geo: {
  scope: "europe",
  resolution: 50,
},

};

const config = {
 responsive: true,
 displaylogo: false,
 autosize: true
};

And its looking fine. But when i resize the browser or view the site on a smaller screen, the canvas where the map is drawn, looks incredibly small while the colorbar looks giant.

(I know i could just reduce the thickness, but the problem persists)

I have also looked for a way of changing the orientation of the colorbar but that feature hasn't been implemented yet.

¿Is there a way to hide the colorbar completely?

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