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

363
Vistas
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 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