score:2
Accepted answer
It seems that right
property is not supported in chart.labels
. For more complex configuration you can render the label using SVGRenderer
:
chart: {
events: {
load: function() {
var chart = this,
renderer = chart.renderer;
var label = this.renderer.label('Test label', null, 100).add();
label.attr({
x: chart.plotWidth + chart.plotLeft - label.width
});
}
}
}
Live demo: http://jsfiddle.net/kkulig/aob1e197/
The advantage of rendering labels via renderer
(not via constructor options) is that you can access parameters of the already created chart and label (chart.plotWidth
, chart.plotLeft
, label.width
in this case).
API reference: https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#label
Source: stackoverflow.com
Related Query
- Position Highcharts label to right side
- Highcharts tooltip always on right side of cursor
- Highcharts stacking bar chart border not displaying on right side
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- How to position axis label in highcharts
- How to position a custom label in highcharts
- Highcharts menus bottom into right side of the graph
- How to position a Highcharts title on the right of the chart?
- Label position between series in Highcharts polar chart
- Highcharts display label for pie chart using html table as data source
- Highcharts gantt or any chart x-axis scroll position to be at the start/left side on loading chart
- Adding a label to the left and to the right of a bar in highcharts
- Highcharts SVG Export from Python Server Side Code
- Change highcharts data label position
- How to position the dataLabel for highcharts on the same side of the x-axis?
- Align scatter plot to right side in highcharts
- Position next and previous buttons on far right and left side of the Highchart
- Server-side c# and client side javascript with json loading Highcharts gantt chart Task Progress Indicator, need to change Tooltip and Label name
- Update xAxis individual label position for printing Highcharts
- Is there a way to calculate custom label position on a Highcharts Activity Gauge?
- How to set "Y" position in label Highcharts
- Run Highcharts on Server side code to add to Word document
- Position highcharts datalabels to the left of positive bars and to the right of negative bars
- Position single data label of highcharts pie chart centered below the chart
- highcharts Nested Grouping right side border missing
- How to add right side legend to US highcharts map that shows eastern states names?
- charts highcharts add spacethe right side
- label is not show at proper position at xAxis with dattime type into highcharts
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
More Query from same tag
- Highcharts: Need heatmap with month and date
- Highcharts Grid Line Height Below Spline
- HighCharts - 2nd yAxis graphs not scaling correctly
- What is the best strategy for testing D3/HighCharts/SVG?
- Highcharts: how to highlight yAxis value?
- Unhandled promise rejection mongoose aggregate
- Highchart: Custom Fixed Placement chart
- Highcharts not defined when loading map data through requirejs
- How to draw a line between 2 different area charts for same category (x axis) in highcharts?
- Issues in Highchart-treemap with drilldown data label color change
- Highcharts How to find legend co-ordinates
- Highcharts treemap with colouraxis updating styles
- Highcharts data from a variable is not working but from works fine from an array
- Angular HighCharts Show All Elements even there are big differance between amounts
- Fullscreen panel bootstrap with highcharts (responsive)
- Highcharts- chart does not display
- highcharts pie using javascript array
- Highcharts Tooltip Show Arrow/Caret when followPointer flag is on
- Highcharts problem with xAxis using multiple series
- Highchart is only showing properly at localhost
- Highcharts stacked bar chart hide data labels not to overlap
- Set line opacity in highchart line chart
- HighCharts Legend placement
- Any chart library for funnel chart instead of highchart?
- Highcharts: alone point hard not visible with marked disabled
- I am trying to include india map in my highchart code
- Highcharts:Grouped and stacked legend
- HighCharts specifying min, max and tickInterval not giving expected results
- How to use the tooltip formatter and still display chart color (like it does by default)?
- Plot 400K graphs of 2 points from CSV with Highcharts