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: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 The container needs an ID (used by Highcharts) and dimensions (width and height).
<div> element where the chart will be rendered:3
Initialize the chart
Call The
Highcharts.chart() with the container ID and configuration:DOMContentLoaded event ensures the page is fully loaded before creating the chart.Chart Types
Change the chart type by modifying thechart.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: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: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.