score:4
Accepted answer
You can do this,
$('#container').highcharts({
xAxis: {
title: {
text: "DISPLAY WHATEVER YOU WANT TO"
}
},
EDIT
chart: {
events: {
load: function () {
var label = this.renderer.image('http://highcharts.com/demo/gfx/sun.png', 20, 50, 30, 30)
.css({
width: '450px',
color: '#222',
fontSize: '16px'
})
.attr({
'stroke': 'silver',
'stroke-width': 2,
'r': 5,
'padding': 10
})
.add();
label.align(Highcharts.extend(label.getBBox(), {
align: 'center',
x: 0, // offset
verticalAlign: 'bottom',
y: 50 // offset
}), null, 'spacingBox');
}
},
score:2
Increase chart.spacingBottom and legend.y properties.
chart: {
spacingBottom: 100,
},
legend: {
y: 100
},
Render label/image, align it and set its y property.
function renderLabel() {
var label = this.renderer.label("How do I move this center and under the legend.")
.css({
width: '180px'
})
.attr({
'stroke': 'silver',
'stroke-width': 1,
'r': 5,
'padding': 10
})
.add();
label.align(Highcharts.extend(label.getBBox(), {
align: 'center',
x: 0, // offset
verticalAlign: 'bottom',
y: 60 // offset
}), null, 'spacingBox');
}
Values are mostly hardcoded but if you want to do it in a dynamic way then you need to set the values based on label/img height.
example: http://jsfiddle.net/qebxk6ty/7/
Source: stackoverflow.com
Related Query
- How to add text to the bottom of a Highchart, but above the legend?
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- How can I add a text link just below the legend box in highcharts
- How to add the text boxes at bottom of the Highchart?
- How to change series legend text color in HighChart chart?
- put the highchart legend to the bottom of the chart and horizontally centered
- How to set series-label to false by default and change the color of series label text in highchart
- How to add Legend in highchart compare stock chart
- Highchart how to animate from the xaxis bottom line upward
- How to add radio button in highchart legend symbol
- How to align bottom of legend to the X axis line?
- In a Highchart, how to display the legend text in next row if the text is too long?
- how to add text in top,left and bottom in funnel highcharts
- How to add one more value against at the end of each bar with a legend
- how to add an color picker control to highchart for changing the color of series by user
- How to add value of y-axis under the x-axis labels in highchart with given dataset
- Highcharts -> how to add vertical title to bar? how to make the symbol in the legend a rectangle?
- How to add a line break in Highchart legend in R?
- Highcharts: How to add a text panel on the side of the chart area
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- How to add text verticaly and horizantaly centered inside highchart solid gauge
- How to add the "isSum" bar in Highchart Waterfall chart in R?
- How to add an icon beside all the series in an legend
- how to add text to the right side of the Piechart in Highcharts?
- How can i align the highchart legend pagination to right or left side of the legends?
- add text under the bar with plotOptions highchart (BAR)
- How to add the attribute `preserveAspectRatio` to Highchart svg
- How add the straight line between bubbles in highchart
- How can I add different icons in the legend
- How to embed text on the bar of the highchart
More Query from same tag
- Highcharts custom SVG marker
- Highcharts label formatter to query mysql?
- Highcharts: Fade plotLines based on hover on marker
- Highcharts Stacking Bar misaligned and oddly sized bars
- Highchart 2Layer 3D Donut chart
- Highcharts tooltip is always the same
- Is it possible to use multi path symbols in highcharts?
- Adding marker points for highcharts map
- highchart maps: mapbubble set custom x,y coordinates for the series for bubbles on same country
- Get stats and show it in chart - PHP/HighCharts
- javascript Highcharts JSON data to HTML table
- Highcharts - Annotations outside plot area (top/bottom)- doesn't show up
- VueJS App put data from GET request inside an array
- Arrange the html text inside flag ( HighStock)
- convert Unix epoch timestamps to JavaScript date timestamps
- Synchronized tooltips positioning with line and horizontal bar charts
- Unable to set the Selected state in Highcharts, when point marker is disabled
- Zoom in Highmaps based on Lat/Long
- How do I buffer streamed data with react-hooks (useEffect) to be able to update another component at once to avoid many rerenderings?
- Highcharts swipe smooth move feature
- How do I add column-specific plotlines using High Charts?
- Add static content into highchart exported pdf header
- Highlight a line with different color in Parallel coordinate chart with Highcharts
- Highchart tick interval for 5 days
- Highcharts column chart returning incorrect series index on click when using shared tooltip
- Highchart update BBox location on zoom
- Highmaps border color of region
- Highcharts - Change opacity of chart when tooltip is shown
- Highcharts show/hide or toggle off all series at once
- Line chart cannot change color use functions