Disable title and subtitle in Highcharts


In this post, I am sharing wow to disable title and subtitle with Highcharts JavaScript chart library.

Highcharts with title and subtitle
Highcharts with title and subtitle

The easiest way to disable title or subtitle in Highcharts is to provide empty (or null) title or subtitle text property when creating new chart e.g.

$('#container').highcharts({
  //...
  title: {
    text: ''
          // text: null // as an alternative
  },
  subtitle: {
    text: ''
          // text: null // as an alternative
  }
  //...
  series: [ ... ]
});

The rendered chart will have no space for the title or subtitle.

Highcharts without title and subtitle
Highcharts without title and subtitle

There might be some other options for hiding title or subtitle labels on this StackOverflow question.


Tags:

#chart#highcharts#javascript


You may also be interested in: