net:ERR_FAILED - 我的应用程序 (Ionic 4 / Angular 7) 在尝试导出 Highcharts 时出错
net:ERR_FAILED - My application (Ionic 4 / Angular 7) is giving an error when trying to export a Highcharts
下面是每次必须下载图形时发生的错误图像,格式为 PDF、png、JPEG ...
Photo Error
我的view.module.ts是:
import Highcharts from 'highcharts/highstock';
import Exporting from 'highcharts/modules/exporting.src.js';
Exporting(Highcharts);
在我的 view.html:
<ion-header class="ion-header">
<script src="https://code.highcharts.com/8.0.3/highcharts.js"></script>
<script src="https://code.highcharts.com/8.0.3/modules/exporting.js"></script>
<script src="https://code.highcharts.com/8.0.3/highcharts-more.js"></script>
</ion-header>
在我的 view.ts:
import * as Highcharts from 'highcharts';
async chartAIM() {
this.graficoAIM = Highcharts.chart("containerAIM", {options});}
选项中的位置:
exporting: {
enabled: true,
csv: {
itemDelimiter: ','
}
可能是因为Highcharts export script的URL不对。您是通过代理工作吗?
这里有links:
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<!-- optional -->
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
P.S.: 请使用详细信息、代码示例等编辑您的 post。不要在屏幕截图中放置巨大的 links。
此外,必须提供 link 演示您实际获得的内容。
下面是每次必须下载图形时发生的错误图像,格式为 PDF、png、JPEG ...
Photo Error
我的view.module.ts是:
import Highcharts from 'highcharts/highstock';
import Exporting from 'highcharts/modules/exporting.src.js';
Exporting(Highcharts);
在我的 view.html:
<ion-header class="ion-header">
<script src="https://code.highcharts.com/8.0.3/highcharts.js"></script>
<script src="https://code.highcharts.com/8.0.3/modules/exporting.js"></script>
<script src="https://code.highcharts.com/8.0.3/highcharts-more.js"></script>
</ion-header>
在我的 view.ts:
import * as Highcharts from 'highcharts';
async chartAIM() {
this.graficoAIM = Highcharts.chart("containerAIM", {options});}
选项中的位置:
exporting: {
enabled: true,
csv: {
itemDelimiter: ','
}
可能是因为Highcharts export script的URL不对。您是通过代理工作吗?
这里有links:
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<!-- optional -->
<script src="https://code.highcharts.com/modules/offline-exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
P.S.: 请使用详细信息、代码示例等编辑您的 post。不要在屏幕截图中放置巨大的 links。
此外,必须提供 link 演示您实际获得的内容。