Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

364
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!