score:-1
score:0
Quick fix: Add this to you style
left: '160px'
score:0
If you wish, you could also add an HTML element after the chart has been generated to do this effect (see example at http://jsfiddle.net/brightmatrix/5517s8zb/1/).
In this case, to get the proper centered effect, you'll need to explicitly define the container div's width.
<div id="container" style="height: 400px; width: 100%"></div>
Here is the HTML element:
/* add an HTML element to the chart starting at 0px from the left corner and
10% of the container's height from the top */
chart.renderer.html('<div align="center" style="font-size: 20px; width: ' +
$('#container').width() + 'px">Center Me!</div>',0,$('#container').height()*.1).add();
I did the 10% of the container's height to help make the position more flexible. You could also choose to add or subtract specific pixel dimensions until you get it placed where you like.
I hope this is helpful!
Source: stackoverflow.com
Related Query
- How to align centre a custom label in highcharts
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Highcharts - How to get default y-Axis label formatter in a custom formatter
- How to position a custom label in highcharts
- Highcharts - How to get the particular chart id on click of custom label in export options
- How do you get the mouse hovered label value with the highcharts custom event plugin?
- How do I format x-axis label in highcharts
- Highcharts - How to set custom colors for the series
- How to pass custom data into Highcharts graph click event
- How to change axis label size when exporting in Highcharts / Highstock
- How to add a label above each bar in HighCharts
- How can I force highcharts to show every x-axis label regardless of spacing constraints?
- How to properly align Font Awesome symbols on Highcharts scatter plots?
- How to align highcharts legend to bottom right?
- How to change Highcharts xAxis label color individually?
- How to force Highcharts to show last label on xAxis?
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- Angular Highcharts Custom Legend Label In Area Chart
- Highcharts stacked column how to use different label on each category
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- How to position axis label in highcharts
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to apply text-align center property to highchart custom label
- how to display 2 same highcharts without duplicate the code
- How can I align gridlines with dots in Highcharts
- How to align Highcharts datetime x-axis with data I pass to it?
- How add custom content HighCharts PDF export?
- Exporting with custom data label image in highcharts gantt
- How to edit tooltip in Highcharts C# code
- HighCharts x-axis & y-axis label center align
More Query from same tag
- Highcharts - Always keep hover state on single slice
- HighCharts numericSymbols in French and German
- Check for duplicate dates in a table mysql
- How to represent a point which is outside range of x and y axis in highcharts
- Date-labels missing in Highcharts
- How to use highcharts(highstock) to display year-week format data?
- HighCharts + reveal.js chart size
- How to send an image in C# to client using async method
- Can you show/hide series in sunburst diagrams?
- Highcharts - How can I show arrow in "solidgauge"?
- How to make a multi pane on highstock (highcharts) which contain a stacked area graph?
- How do i show Last seven days of a week from current date in area spline categories highcharts
- Highcharts yAxis title click
- Highcharts - Dynamically change chart type with on radio buttons click
- How to show bar of graph in different colour when it reaches threshold level in high charts in JS?
- Highcharts - Custom toggle button using the exporting buttons
- ES6 avoid that/self
- Angular Highcharts Reading from multi objects elements
- giving a javascript number fixed width after decimal while remaining a number
- How to format y values in a tool tip to show commas?
- Accessing the response text for JSONP. Flattening multiple objects to text
- Highcharts Datetime X-Axis invalid date
- Open highcharts tooltip at a specific point - React typescript highcharts
- highcharts legend items align to the left when width is set
- How to get what are the items collapsed in gantt highcharts-angular
- How to get/set highcharts xAxis step?
- How do I customize xAxis labels at start and at end?
- How to reuse a SVG generated from highcharts as background
- Datalables alignment doesnt work in Highchart Timeline
- Highcharts columnchart: How to separate overlapping columns