Book Image

Highcharts Essentials

By : Bilal Shahid
Book Image

Highcharts Essentials

By: Bilal Shahid

Overview of this book

Table of Contents (16 chapters)
Highcharts Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

An overview of Highcharts APIs and class model


A Highcharts chart is composed of five different classes namely Chart, Axis, Series, Point, and Renderer. Each object contains methods to accomplish different tasks and properties that contain vital information about that object. They also contain properties to reference back to higher-level objects, thus allowing access to properties and methods of other objects.

The purpose of each class is listed as follows:

  • Chart: It is the top-level class that represents the chart. It contains methods, such as addAxis(), addSeries(), destroy(), and getSVG() to carry out operations on the chart as a whole. Within this class, there are arrays that contain objects for x axis, y axis, and series. You can find out more about the Chart class, its methods, and properties at http://api.highcharts.com/highcharts#Chart.

  • Axis: This class represents the chart axes. It has methods to deal with axis-specific operations including getExtremes() to get extreme values on...