score:2
Example for you: http://jsfiddle.net/xqag5e72/2/
In short, you can change translation for legend to be similar to xAxis' title:
function moveLegend(e) {
var legend = this.legend,
x = this.plotLeft + (this.xAxis[0].width / 2) - legend.group.getBBox().width / 2,
y = legend.group.translateY;
legend.group.attr({
transform: 'translate(' + x + ',' + y +')'
});
}
Note: I'm using load
and redraw
events, to translate legend after first initialization and later to make this legend responsive.
Source: stackoverflow.com
Related Query
- Align Legend with x-Axis Title in HighCharts
- Highcharts Legend Title Horizontal Align
- highcharts y axis label with offset is hidden when chart has no title
- Highcharts how to use column title as X axis and not as Legend
- How can I align the scale on my HighCharts graph with the axis rather than the margins?
- Slanted highcharts axis labels overlap with legend
- In the following code i want to show the WHOLE names on x axis nd dont want them to overlap with the legend
- Change HighCharts axis title
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - with datetime axis labels overlap
- highcharts - removing decimal places on Y axis with only one point
- Change HighCharts axis title in 2.1.4
- Highcharts blank chart with x and y axis
- Highcharts Legend Overlaps with X-Axis
- Highcharts label format with tickPositioner in a datetime x Axis
- Align y axis tick "outside" on highstock, so they are the same as on highcharts
- Highcharts connecting scatter chart and pie chart with single legend
- How to align highcharts legend to bottom right?
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts - Global configuration with common code and unique data & Headings
- How to populate a Highcharts axis with string formatted data from a PHP array
- HighCharts scatter plot with Datetime on X Axis not plotting values correctly
- highcharts legend items align to the left when width is set
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- Highcharts legend title border not full width
- Legend on bottom with highcharts
- Highcharts - Gray out only title in legend
- How to trigger a legend click in HighCharts with jQuery?
More Query from same tag
- How to translate the "Start" and "End" label in the tooltip of a Highcharts Gantt?
- Exporting Charts on server side with Highcharts and PhantomJS to make a custom PDF
- How to change width / padding between categories?
- Highcharts isn't displaying the data
- Highcharts gauge is render before the data is fetched by json
- Highcharts cloud Scatter plot with data array
- highcharts groups of stacked columns
- How to add vertical lines to graph with HighStocks or HighCharts?
- Highcharts Drilldown no working in IE
- Highchart map does not support IRS country code
- missing the last element of the line
- hierarchy information while using grouped category plugin in highchart
- set initial graphs on highcharts
- HighCharts onclick this.point.name is undefined
- Highcharts - how to display multiple graphs on one page using multiple xml files
- Filter categories in highcharts by using checkboxes
- HIghstock Timeseries data date format
- adding series from existing highcharts chart
- Highcharts disable click on column
- date time plotting in highcharts
- High chart width issue
- Highcharts live chart shifts continuously
- How to add a React method to an object outside of React
- Highcharts, no animation when updating number of series in chart
- Yii HighCharts not displaying from $vars but display when hardcoded
- Highchart and "almost regular" time interval data
- Is there a style to apply that allows the legend to style each series as a button?
- Highcharts markers on bar charts
- Mix categories and subtasks in HighCharts Gantt?
- how to make custom directive or pass variable in directive in angular js