简体   繁体   English

413请求实体太大的HighCharts

[英]413 Request Entity Too Large HighCharts

I am having trouble with the exportation of a certain graph. 我在导出某个图表时遇到问题。 I have made a JSFiddle ( http://jsfiddle.net/oy73rgc4/3/ ) to show with what I am working. 我已经制作了一个JSFiddle( http://jsfiddle.net/oy73rgc4/3/ )来展示我的工作。 This example doesn't contain all the data points with are used, because then my browser (Chrome) crashes. 此示例不包含所有使用的数据点,因为我的浏览器(Chrome)崩溃了。 In total i am using about 80K of data points. 我总共使用了大约80K的数据点。 The HighCharts is displayed like normal and doesn't cause any problems. HighCharts显示正常,不会造成任何问题。 The problem comes when I want to export the chart! 当我想导出图表时出现问题!

When I export the chart, doesn't matter if it's PNG/JPG/PDF it always directs to https://export.highcharts.com/ with the message 413 Request Entity Too Large . 当我导出图表时,如果它是PNG / JPG / PDF并不重要,它始终指向https://export.highcharts.com/ ,消息413 Request Entity Too Large I have tried some google'ing 我试过一些google'ing

offline-export.js 离线export.js

Other people who have experienced this problem had tried to use the JS offline-export. 遇到此问题的其他人曾试图使用JS离线导出。 I tried this, but it didn't have any effect.. It just removed the export button in the chart. 我试过这个,但它没有任何效果..它只是删除了图表中的导出按钮。 https://github.com/highcharts/highcharts/issues/4614 https://github.com/highcharts/highcharts/issues/4614

Data grouping 数据分组

Some suggested to others to use HighCharts Data grouping. 有人建议其他人使用HighCharts数据分组。 I checked the API but I find that there is too little explanation about this. 我检查了API,但我发现对此的解释太少了。 I think that I can't implement this from scratch and I am unable to find an example http://api.highcharts.com/highstock/plotOptions.series.dataGrouping 我认为我无法从头开始实现这一点,我无法找到一个例子http://api.highcharts.com/highstock/plotOptions.series.dataGrouping

custom exporting server with increased size limit in nginx.conf 在nginx.conf中增加大小限制的自定义导出服务器

I also found that this option could help. 我还发现这个选项可能有所帮助。 I tried to find instructions, but I don't understand how I need to implement this in my web application ( Laravel 5.2 ) http://www.highcharts.com/docs/export-module/setting-up-the-server 我试图找到说明,但我不明白我需要在我的Web应用程序中实现这一点( Laravel 5.2http://www.highcharts.com/docs/export-module/setting-up-the-server

Does someone have a new suggestion for me on how I could solve this problem? 有人对我如何解决这个问题有新的建议吗? Or could someone help me out with one of the options which I have suggested? 或者有人可以帮我解决我建议的其中一个选项?

The exporting server is something that you deploy on your server side (ie you have to deploy a server to do exporting for you). 导出服务器是您在服务器端部署的东西(即您必须部署服务器以便为您导出)。 However, if you only need to export PNG and SVG, then you can do with client-side only solution as per their docs. 但是,如果您只需要导出PNG和SVG,那么您可以根据其文档使用仅客户端解决方案。

http://www.highcharts.com/docs/export-module/client-side-export http://www.highcharts.com/docs/export-module/client-side-export

If their server seems to have a limit on how big requests it will serve. 如果他们的服务器似乎对它将服务的请求有多大限制。 Means that you have to deploy your own server and configure it (its has to do with actual http server configuration I think) to accept larger requests. 意味着您必须部署自己的服务器并对其进行配置(它与我认为的实际http服务器配置有关)才能接受更大的请求。 Not much you can do on the client, but to limit the amount of data you display on the chart. 您无法在客户端上执行任何操作,但限制您在图表上显示的数据量。

PS it always directs you to highcharts export server because export functionality by default users their server. PS它总是将您引导至highcharts导出服务器,因为默认情况下导出功能是用户的服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM