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.
Source: stackoverflow.com
Related Query
- Is there a way to disable the Title and Subtitle in Highcharts?
- Is there any way to test the highcharts with large data-set with Jest and React.?
- Is there any way to disable hover action on particularly some nodes in networkchart of highcharts based on the node color.?
- Using Highcharts and displaying a message over or on the chart when there is no data
- How to add image in Highcharts Title and subtitle
- Highcharts - Why is there extra spacing before the first column and after the last column?
- Is there a way to change the display value in series using highcharts
- Is there a way to disable mouseover on highcharts entirely?
- Is there a way to fill different colors up to the desired point in Highcharts gauge graph?
- Disable the label text (min, max, average, bins values) in measure annotation while doing MeasureX in highstocks and highcharts
- How to stop plotting the graph if data is blank and continue if data is there on the y-axis in base line highcharts
- How to make hover effect for two bar in highcharts at the same time is there any way by using css or any inbuilt method to achieve this?
- Highcharts | Network Graph - Is there a way to expand leaf nodes on click of the Parent node?
- How to remove default Hover text and display the custom text title on hover Donut chart Highcharts
- In a Highcharts Stacked Area chart, is there a way of highlighting the area hovered over, rather than the area belonging to the nearest point?
- Is there any way to highlight the node on search in network chart when using highcharts in angular application
- Is there a way to plot more than 1000 points in a scatter plot using the Highcharts .NET Wrapper?
- Why aren’t those 2 HighCharts codes equivalent? (Or is there a way to modify a call to legendItemClick after the creation of the chart object?)
- Subtitle and title at bottom of highcharts
- Highcharts with shared and split tooptip, Is there any possible to style the hover xAxis labels?
- Is there a way to get the coordinates of a Segment that I draw on the HighCharts stockChart?
- The needle in highcharts speedometer gauge is very slow to react to changes in the speed value in an animation is there a way to make it more dynamic?
- how can I use rangeselector and navigation in highcharts in the given code
- How to update the HighCharts title using drill-up when there are multiple charts on same page?
- Is there any way to show the summation of area charts value in highcharts without using a line chart? I would like to know other alternative
- Calling Highcharts export to jpeg but the source is https and exporting is http (security warnings issued by browser)
- Is there a way to copy the contents of a HighCharts tooltip to the clipboard?
- Highcharts chart title and subtitle overlapping on Iphone 5
- Customize tooltip and format the number to 2 decimal places of highcharts
- How do you increase the performance of highcharts chart creation and rendering
More Query from same tag
- High chart spline chart is not plotting with single data
- Extending Area to full width of Chart with Months on x-axis
- Issue with creating a highchart funnel chart in react
- How can I prevent Highcharts from displaying decimal intervals in between x-axis ticks?
- Stacked bar chart colors in case of Drilldown (open on click of Line chart)
- Highcharts free-form drawing content not getting exported
- problem Highchart Show/Hide data label on hover legend
- Highchart 2Layer 3D Donut chart
- Show tooltips of piechart when hover outside of the chart on a button
- Highchart not rendering in shiny using 'Highcharter' package
- Highstock highcharts irregular data gets wrong x-scale
- Relative percentage height not showing properly
- When using Highcharts, how do you get the point name from a data point series?
- Highcharts: Need heatmap with month and date
- Highcharts - tooltip using click event doesn't appear all times
- Highcharts - legend titles rotation is not working fine in IE10
- How to display plotlines when only one value exists
- Highchart: Bubble heading is not showing if two bubbles intersect or comes near one another in Bubble chart
- how to use json_encode
- adding live data to highstock Using json file
- redraw piechart with Highcharts using JSON data
- how to have customized tooltip,when plot has two series
- Chartkick on rails: change the graph style based on the data
- How to make drill down in stacked Column Line chart in Highchart
- How to create data in Json format for highcharts
- Sorting data from database, to use in chart. PHP
- I'm trying to use highcharts to display a series of points not just x and y
- Redraw same highchart
- Render from/to areas in Highcharts line chart
- Rails 4 - Sprockets::FileNotFound in Welcome#index