Skip to main content
Highcharts provides comprehensive TypeScript support with detailed type definitions, making it easy to build type-safe charting applications.

Installation

TypeScript definitions are included in the Highcharts package - no need for @types/highcharts.

Basic Usage

Importing Highcharts

ES Modules

TypeScript Configuration

tsconfig.json

Type Definitions

Options Types

Series Types

Point Options

Accessing Chart API

Chart Instance

Series API

Axis API

Event Handlers

Chart Events

Point Events

Series Events

Custom Types and Interfaces

Extending Point Type

Custom Chart Options

Type Guards

React Integration

Typed Component

Custom Hook

Advanced Patterns

Generic Chart Factory

Type-Safe Data Fetching

Highcharts Stock

Common Issues

Module Resolution

Type Inference

Any Type Workarounds

Always prefer proper typing over any. Use type assertions and module augmentation to maintain type safety.

Resources