Skip to main content

Create Your First Chart in 5 Minutes

This quick start guide will help you create a working chart with minimal setup. We’ll use the CDN approach for simplicity.
This guide uses the CDN for quick setup. For production projects, consider using npm installation instead.

Complete Example

Here’s a complete HTML file that creates a column chart:
Copy this code into an HTML file and open it in your browser - you’ll see a working chart!

Step-by-Step Breakdown

1

Load Highcharts

Include the Highcharts library from the CDN:
For production, consider loading additional modules like accessibility:
2

Create a container

Add a <div> element where the chart will be rendered:
The container needs an ID (used by Highcharts) and dimensions (width and height).
3

Initialize the chart

Call Highcharts.chart() with the container ID and configuration:
The DOMContentLoaded event ensures the page is fully loaded before creating the chart.

Chart Types

Change the chart type by modifying the chart.type option:

Using with npm

If you prefer npm installation:
1

Install Highcharts

2

Import and use

Adding Interactivity

Enhance your chart with built-in features:

Enable Exporting

Add the exporting module to let users download charts:
This adds a menu button to export as PNG, JPEG, PDF, SVG, or CSV.

Add Tooltips

Customize the tooltip that appears on hover:

Enable Data Labels

Show values directly on the chart:

Stock Charts (Time Series)

For time-series data, use Highcharts Stock:
Stock charts use Highcharts.stockChart() instead of Highcharts.chart().

Framework Integration

Highcharts works with popular frameworks:
See the integrations overview for official wrappers.

Common Options

Here are the most commonly used configuration options:

Next Steps

Your First Chart

Detailed tutorial with explanations of every option

API Reference

Complete reference of all configuration options

Chart Types

Explore all available chart types

Examples

Browse hundreds of live examples
For a more detailed walkthrough, continue to Your First Chart where we explain each configuration option in depth.