Skip to main content
Server-side rendering allows you to generate chart images without a browser, perfect for automated reports, email notifications, and PDF generation.

Use Cases

  • Email Reports - Embed chart images in emails
  • PDF Generation - Include charts in PDF documents
  • Automated Dashboards - Generate charts on schedule
  • Static Site Generation - Pre-render charts at build time
  • API Endpoints - Serve chart images via REST API

Node Export Server

The official Highcharts Node Export Server is a powerful tool for server-side rendering.

Installation

Command Line Usage

Server Mode

Run as an HTTP server:
Then POST requests to http://localhost:7801:

Node.js Integration

Using as a Module

Async/Await Pattern

Express.js Integration

Configuration Options

Docker Deployment

Using Official Image

Custom Dockerfile

Email Integration

Using Nodemailer

PDF Generation

Using PDFKit

Next.js Integration

API Route

Static Generation

Performance Tips

1

Pool Management

Initialize the pool once and reuse it:
2

Use Caching

3

Optimize Chart Config

Error Handling

Server-side rendering requires sufficient memory and CPU resources. Monitor your server performance and adjust worker pool size accordingly.

Resources