[英]Highcharts Node.js export server : Connection error
我正在嘗試創建導出pdf的功能,在我的網頁中呈現使用Highcharts創建的圖表。 我正在使用Highcharts的導出服務器來創建圖表圖像。 我按照下面的步驟鏈接:
http://www.highcharts.com/docs/export-module/setting-up-the-server
我在下面的url中使用了Node.js導出服務器:
https://github.com/highcharts/node-export-server
現在的問題是,我無法使用以下命令生成圖像:
curl -H "Content-Type: application/json" -X POST -d '{"infile":{"title": {"text": "Steep Chart"}, "xAxis": {"categories": ["Jan", "Feb", "Mar"]}, "series": [{"data": [29.9, 71.5, 106.4]}]}}' 127.0.0.1:7801 -o mychart.png
在上面的命令結果中,我收到此錯誤:
curl: (7) Failed to connect to 127.0.0.1 port 7801: Connection refused
任何幫助,將不勝感激。
確保服務器已在運行。
highcharts-export-server -enableServer 1 -port 7801
如果仍然失敗,請確保連接到正確的IP和端口。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.