score:1

Accepted answer

You can always parse the received data to match the date format in highcharts: https://www.highcharts.com/docs/working-with-data/custom-preprocessing

var data = [{
    "yearmonth": '2019 - 01',
    "sales": 30
  }, {
    "yearmonth": '2019 - 02',
    "sales": 66
  }, {
    "yearmonth": '2019 - 03',
    "sales": 52
  }],
  parsedData = [];

data.forEach(element => {
  parsedData.push({
    name: element.yearmonth,
    y: element.sales
  });
});

A simple example: https://jsfiddle.net/BlackLabel/fsvrmd3u/


Related Articles