score:3
you can use a loop over each point and translate position by attr() function.
var max = chart.yaxis[0].topixels(chart.series[0].data[0].y, true);
$.each(chart.series[1].data, function (i, d) {
d.datalabel.attr({
y: max - 20
});
});
score:0
even more simple than a function, you can just set the verticalalign property to top and then set the y property to -20.
setting verticalalign to "top" will move the data label toward the top of the column, but it is still within the column itself. however, this is the same relative location on all columns, so setting the y to -20 will move the data label up by 20 placing it just above the column. you can adjust the y value to your needs.
this works for me on a stacked column chart with a line chart overlay as well. i have one data label per column which shows the {point.stacktotal} for each column.
score:0
this didn't work for your example, but it did work for my columnrange where i was trying to do the same thing and it is way easier so i thought i would add it for people to try before messing with custom formatting.
adding the yaxis property opposite and set it to true worked for me. unfortunately when trying it in your fiddle it didn't work in this specific instance.
yaxis:{
opposite: true,
}
Source: stackoverflow.com
Related Query
- Show data labels on top in stacked column graph in highcharts
- How to make stacked column graph to show total data value on top
- highcharts - precision for stacked column chart data labels
- Highcharts: Show data label at top of column graph
- Highcharts show stacked column total sum always on top (even negatives)
- Highcharts stacked bar chart hide data labels not to overlap
- Is there a way to move data labels to the side of a stacked column in HighCharts?
- Overlapping and rounded stack in stacked column graph in Highcharts
- Make stack label disabled for a column in stacked column graph in Highcharts
- Show all labels in highcharts horizontal bar graph
- Highcharts stacked column stackLabels do not show when axis is reversed
- HighCharts Data Structure - Multiple Independent Series, Stacked Column Chart
- How To Show All Data Labels For Datetime Axis In Highcharts
- How to show Legends for all the series data in stacked column chart Highcharts?
- HighCharts Column Chart: Data Labels on Stacks Overlap
- Highcharts exporting hide data labels if number doesn't fit in stacked bar
- pushing dynamic data to stacked percentage column in highcharts
- HIghcharts column graph with more than 50 data points
- Highcharts X-Axis value on top of stacked column
- How to show overlapping in various columns of highcharts column range graph
- Highcharts stacked column don't show the stacked with min value
- Highcharts - Stacked column data series
- show one series data at a time in high chart column graph
- Add new series to the top of a highcharts stacked column chart
- Highcharts : Disable top spacing from column graph
- HighCharts onClick get column data on Stacked Column Chart
- Show average in highcharts graph as column
- highcharts column charts show sum single 0 when entire column data total is 0
- How to change color of single column in Highcharts column graph when data is in CSV form?
- Highcharts Stacked Columns Labels on Top
More Query from same tag
- put labels on the right of the chart area in HighCharts
- I build synchronized charts (highcharts) that I want to export in one PDF
- Customizing the Stockchart range selector buttons from HighCharts library in GWT (and Javascript in general)
- Highcharts and the export of table data
- highcharts: Object doesn't support this property or method IE8
- Show context menu on right click High-chart v3.0.10
- Highcharts - line between two categories
- httphandler cannot find axd of Highcharts
- HighCharts uncaught exception
- Round off the area points in Highcharts Polar
- How to avoid bad behavior zooming to areas outside the data range
- Highcharts polygon label
- Set stacking column graph colors from the bottom up
- How to create Duplicate DataLabels in highcharts
- Highcharts parse CSV
- Highcharts Redrawing images based off of chart width
- how to avail bg color for every bar in highchart
- highstock with json data
- Highcharts : Two marker symbol for the same point
- Using an array for data in highcharts
- How to set opacity of a single bubble in Highcharts
- HIghcharts seperation of legend and pie
- Freeze Highchart Animation
- highcharts how to hide legendSymbol in front of particular legend name?
- Highcharts Stacked Area Data
- How to add php data into highchart js file in php
- Reduce white space below plot area without using negative marginBottom
- How to show two specific data points from tabular data in Highcharts?
- Drilldown in Map with Vue.js
- highslide and highchart