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

224
Vistas
Highcharts: Polar chart does not display series correctly in dinamically loaded data

I'm trying to build a polar chart where you can dinamically add axes from a dataset server side (I've slimmed up the code to the bare minimum)

This is what I've tried to do so far:

function loadToRadar(chart){


    // if type of chart == 'undefined', we initialize a new chart

    if ( typeof radarChart == 'undefined'){
         radarChart = initializeRadarChart(chart, this);
            return
        }

    // add new xAxis category
    let newCategories = chart.xAxis[0].categories;
    newCategories.push(newColumnCat);
    chart.xAxis[0].setCategories(newCategories);
                  
    // add new yAxis
    chart.addAxis(
         {
             min : newMin,
             max : newMax,
             showLastLabel : true,
             gridLineInterpolation: 'polygon',
        }, 
          false // is X axis?
   );

    // add new point to series
    chart.series[0].addPoint([newMean]) // access the original series and addpoint

}

var chart;
function initializeRadarChart(chart, column){
    console.log('initializeRadarChart called');
    chart = Highcharts.chart('radar-chart', {
        chart: {
            parallelCoordinates: true,
            parallelAxes: {
                gridLineWidth: 1
            },
            polar: true
        },

        xAxis: {
        categories: [
            column.columnCat
        ],
        tickmarkPlacement :'on',
        labels: {
            style: {
            color: 'black'
            }
        }
        },

        yAxis: [
            {
                min : this.min,
                max : this.max,
                showLastLabel : true,
                gridLineInterpolation: 'polygon',
            }, 
        ],

        series: [
        {
                name :'firstSeries',
                data : 5 //random num
            },
        ]
        });
    return chart;
    }

This is the output image:

example

As you can see points of the series are loaded for the correct category but they display only in the original line.

Added a sample jsfiddle

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Thank you for the demo. I took a look closer into this issue and it seems like a bug to me. I reported it on the Highcharts GitHub issue channel where you can follow the threads or ask the core developers for the workaround.

https://github.com/highcharts/highcharts/issues/16380

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