最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

highcharts-export-server dispaly #15 error (Sorting) on exported image - Stack Overflow

programmeradmin1浏览0评论

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 }

发布评论

评论列表(0)

  1. 暂无评论