score:7
Accepted answer
You can do that by getting the series object from the formatter callback function.
stackLabels: {
style: {
color: 'black'
},
enabled: true,
formatter: function() {
return (this.axis.series[1].yData[this.x] / this.total * 100).toPrecision(2) + '%';
}
}
Here is the jsfiddle for your case:
Source: stackoverflow.com
Related Query
- Show specific series values in the stack label using highcharts
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- Hiding a Highcharts series without using the legend
- How to show only specific x-axis values on datetime axis in Highcharts
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Highcharts show the same yAxis start and end value with multiple data series
- Is there a way to change the display value in series using highcharts
- Highcharts - Show the percentage difference between data points on a series
- Highcharts label behind the second series (but above the first series)
- Highcharts - show series values outside chart container?
- Highcharts display label for pie chart using html table as data source
- Highchart x-axis show label after specific days no matter what is in the x-axis categories
- Highcharts series doesnt show data and render the chart
- Highcharts - three series using left Y axis and the fourth using the right Y axis
- Highcharts - Show a string category label in the tooltip for a line graph
- I want to capture the starting and end point of all the series in my multigraph and show it in a table using MeasureX of StockTools in Highstock
- Show specific month when zoomed on a quarterly chart using highcharts
- Stacked Bar Highcharts how to show the values
- How to show circular progress pie chart using the highcharts
- Highcharts show two line series with same values
- show two different series with different start intervals with the same xAxis highcharts
- Highcharts Highstock How do I change the label on top of tooltip for OHLC series data?
- Angular 9 Highcharts - when using series of type pie with type gauge the innerSize of pie is not working
- Show only the first and last y-axis label on a graph highcharts
- Align second scatter series to the side similar to how column and bar charts do using HighCharts
- Show multiple values for a day in Highcharts time series
- Custom HighCharts - change the height of plotLines , show the marker value by default at a specific x and y
- Highcharts / Highstock: How to access values at the centers of dataGroups of another series
- Avoid showing duplicate stack labels on the every column series in a. highcharts
More Query from same tag
- How to Create synchronized High chart with different no of series per chart
- Using JSON data with the jQuery highcharts plugin
- highchart plotline can have move animation?
- Render Table jQuery weird load order
- Dual axis using percentage and absolute value to same serie in Highcharts
- HighStocks Fixed Xaxis 30 minutes interval
- *Highchart* Disable the legend item click
- How do I input bar-chart data to an overall pie-chart ? (Highcharts/ JS / jQuery)
- Date/Time format relative to date range
- React Highcharts Jest testing error: `InvalidCharacterError`
- How to hide the figures on the coordinates in a High Chart graph?
- Highchart Options (points' size) - R shiny
- set data for navigation in highstock
- Highstocks chart multiple pane width and y axis alignment issue
- How do I get the value of a highcharts graph point on mouseover?
- Showing/Hiding child nodes and links in Highcharts Networkgraph
- HighChart xAxis and data discrepancy
- highcharts - do not show zeroes in labels and format
- Highcharts boxplot line rendering issues: is there a solution?
- how to create donut chart using highcharts?
- Refresh Highcharts with data from AJAX using Handlebars
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Vertical areas along with line on the chart - is that possible
- How to make highcharts scrollable horizontally when having big range in x-axis
- Highcharts not displaying after refresh
- Highchart basic bar : How to know which specific bar section is clicked?
- Plot Histograms in Highcharts
- Highchart - change the minor spacing for linear guage chart
- Add Offline Export chart capability in Angular-8
- How to create chart with highchart in which bar doesn't start from 0 in y axis?