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

221
Views
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 answers
Answer question

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 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!