score:-1

this is a bit of a hack but you can also try that:

title: {
    text: '<span class="hidden">my custom hello</span>',
    align:"left",
    usehtml:true
}

score:1

this works for me!!!

title:false

score:2

just write a json object

title : {
  style : {
    display : 'none'
  }
}

score:3

here is the solution

title: {
    text: null
},
subtitle: {
    text: null
}

score:4

in react-native below code worked for me,

  title: {
    style : {
      display : 'none'
    }
 }

hope it helped.

score:5

for those that use typescript you can set the highcharts.titleoptions to hide the chart title.

title: {
  text: undefined
},
subtitle: {
  text: undefined
}

score:8

according the highcharts doc, the correct way is to set 'text' to null.

score:10

set the text field to null

from the documentation at http://api.highcharts.com/highcharts#title.text

text: string

the title of the chart. to disable the title, set the text to null. defaults to chart title.

score:13

you can always do this:

chart:{
    margintop: 30
}

title:{
    text: ''
}

that worked for me :-)

note: this answer was for version 2.*, for newer versions there are better answers.

score:13

it´s simple... only set the title´s text to null. like this

    $(function () {
$('#container').highcharts({
    xaxis: {
        categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
    },
    title: {
        text: null  
    },
    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]        
    }]
});

});

see@apireference: http://api.highcharts.com/highcharts#title.text

score:19

very simple! in the latest version of highcharts just set title and subtitle properties to false.

{
title: false,
subtitle: false
}

find the working fiddle here: https://jsfiddle.net/samuellawrentz/hkqnvm7k/4/

score:41

i prefer this method :

title: {
    text: '',
    style: {
        display: 'none'
    }
},
subtitle: {
    text: '',
    style: {
        display: 'none'
    }
},

score:73

from the highcharts doc:

text: string the title of the chart. to disable the title, set the text to null. defaults to chart title.

fiddle: http://jsfiddle.net/daub10dr/

title:{
      text: null
      }

score:175

setting the title text to an empty string is the way to do it.

no space is created for the title in that case:

without text: http://jsfiddle.net/jlbriggs/jvnjs/284/

with text: http://jsfiddle.net/jlbriggs/jvnjs/286/

title:{
    text:''
}

if you want less space than is left in that case, simply set your 'margintop' to 0

{{edit due to numerous comments:

as pointed out a number of times below, the documentation now states text: null as the method to achieve this.

either method achieves the desired result.


Related Query

More Query from same tag