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

167
Views
Eje polar Plotly y color de primer plano del texto de la leyenda

¿Cómo se cambia el color de primer plano de la leyenda y el eje polar (0, 45, 90, etc.) a blanco cuando el fondo es negro?

 var data = [ { type: "scatterpolar", mode: "lines+markers", r: [.302, .098], theta: [13,106], line: { color: "#ff66ab" }, marker: { color: "#8090c7", symbol: "square", size: 8 } }, { type: "scatterpolar", mode: "lines+markers", r: [.39, .102], theta: [159, 168], line: { color: 'black' }, marker: { color: "red", symbol: "circle", size: 8 } } ] var layout = { showlegend: true, polar: { radialaxis: { tickfont: { size: 8 } }, angularaxis: { tickfont: { size: 8 }, rotation: 90, direction: "clockwise" } }, plot_bgcolor: 'black', paper_bgcolor: 'black' } Plotly.newPlot('myDiv', data, layout)
 <head> <!-- Load plotly.js into the DOM --> <script src='https://cdn.plot.ly/plotly-2.9.0.min.js'></script> </head> <body> <div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div> </body>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede configurar layout.legend.font.color = 'white' y layout.polar.angularaxis.color = 'white' .

 var data = [ { type: "scatterpolar", mode: "lines+markers", r: [.302, .098], theta: [13,106], line: { color: "#ff66ab" }, marker: { color: "#8090c7", symbol: "square", size: 8 } }, { type: "scatterpolar", mode: "lines+markers", r: [.39, .102], theta: [159, 168], line: { color: 'black' }, marker: { color: "red", symbol: "circle", size: 8 } } ] var layout = { showlegend: true, legend: { font: { color: 'white' } }, polar: { radialaxis: { tickfont: { size: 8 } }, angularaxis: { color: 'white', tickfont: { size: 8 }, rotation: 90, direction: "clockwise" } }, plot_bgcolor: 'black', paper_bgcolor: 'black' } Plotly.newPlot('myDiv', data, layout)
 <head> <!-- Load plotly.js into the DOM --> <script src='https://cdn.plot.ly/plotly-2.9.0.min.js'></script> </head> <body> <div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div> </body>

about 4 years ago · Juan Pablo Isaza Report
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!