admin管理员组

文章数量:1431530

I am using highcharts-export-server npm module in my project. By using node services I am tryign to export the image using highcharts-export-server node library. Things are working fine the only thing I am getting is the error on export image about the sorting of the data. See the attached screen shot. For my data, the sorting is not possible for now. Is there any way I can get rid of (or remove) this error from the exported image. Or can the image get exported without this error?

I am using highcharts-export-server npm module in my project. By using node services I am tryign to export the image using highcharts-export-server node library. Things are working fine the only thing I am getting is the error on export image about the sorting of the data. See the attached screen shot. For my data, the sorting is not possible for now. Is there any way I can get rid of (or remove) this error from the exported image. Or can the image get exported without this error?

Share Improve this question asked Nov 19, 2024 at 8:33 anki145anki145 534 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

The data sorting is necessary to remove the error. You can easily do that via the series.dataSorting API option.

   dataSorting: {
        enabled: true,
        sortKey: 'x.value',
      },

Demo: https://jsfiddle/BlackLabel/7gx4n2v0/

API Reference: https://api.highcharts/highstock/series.line.dataSorting

I got the answere, in any case if you do not want to sort the data what you are providing to the highchart to process, you should set the displayErrors flag to false (By default it's true). Chart {. . . ., displayErrors: false }

本文标签: highchartsexportserver dispaly 15 error (Sorting) on exported imageStack Overflow