You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用Highcharts Export Server将图表输出至标准输出?

Highcharts Export Server: Stream Output to Standard Output

The issue you're hitting is that the --outfile flag isn't designed to handle special streams like /dev/stdout directly. Instead, the Highcharts Export Server CLI includes a dedicated --stdout flag specifically for streaming the generated chart image to standard output.

Here's the correct command to achieve what you want:

highcharts-export-server --infile ./chart_options.json --stdout

This will send the raw image data directly to stdout. If you want to capture this output into a file (as a replacement for your original --outfile usage), you can pipe it like this:

highcharts-export-server --infile ./chart_options.json --stdout > ./chart.png

The --stdout flag works cross-platform (including Windows, where /dev/stdout doesn't exist), making it a more reliable choice than trying to target stdout via --outfile.

内容的提问来源于stack exchange,提问作者Francesco Meli

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 16:02:38