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

304
Views
Highcharts agrega información sobre herramientas que tiene una pequeña flecha que apunta hacia la serie

Estoy construyendo un mapa alto de Highcharts usando la documentación aquí: http://api.highcharts.com/highmaps/tooltip.style

Y he diseñado con éxito mi información sobre herramientas de la forma en que quiero que se vea en términos de color y contenido.

Esto es lo que tengo actualmente: ingrese la descripción de la imagen aquí

Esto es lo que necesito (la pequeña flecha o zanahoria en la información sobre herramientas)

ingrese la descripción de la imagen aquí

Por lo general, crearía esto usando HTML: después o: antes y posicionamiento relativo, pero no sé cómo hacerlo en gráficos altos. Sé que podría configurar useHtml:true y luego aplicar css a la clase que representa la información sobre herramientas, pero creo que debe haber una manera de hacer que la información sobre herramientas haga esto automáticamente a través de un accesorio en los gráficos altos.

Aquí está el código que tengo actualmente para el gráfico alto:

 let config = { tooltip: { backgroundColor: '#ff9600', borderWidth: 1, borderColor: '#ff9600', borderRadius: 2, formatter: function () { return '<b>' + '<span style="'+ tooltipStyle + '">' + this.point.name + ': $ 620 USD</span><br>' + '<span style="'+ tooltipStyle + '">' + this.point.value + ' Transactions</span>'; } }, series:[{ allAreas: true, data: data, mapData: mapsPathData, joinBy: [countryCode], dataLabels: { enabled: false, format: '{point.name}' } }] };
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Para agregar una flecha a su información sobre herramientas, puede configurar followPointer: false

 const options = { series: [{ mapData: Highcharts.maps['custom/europe'], data: [ ['is', 1], ['no', 1], ['se', 1], ['dk', 1], ['fi', 1] ] }], tooltip: { followPointer: false, backgroundColor: '#ff9600', borderWidth: 1, borderColor: '#ff9600', borderRadius: 2, formatter: function () { return '<b>' + '<span style="'+ 'tooltipStyle' + '">' + this.point.name + ': $ 620 USD</span><br>' + '<span style="'+ 'tooltipStyle' + '">' + this.point.value + ' Transactions</span>'; } } } const chart = Highcharts.mapChart('container', options)

Ejemplo en vivo: https://jsfiddle.net/krg9m2zb/

over 4 years ago · Santiago Trujillo 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!