score:43
Accepted answer
You may want to look @ dataLabels.formatter
. this.percentage
option is available for pie
Also dataLabels.distance
can be set to a negative value for dataLabels inside the pie.
score:1
Try this code. It works for me:
'labelFormatter':function () {
var total = 0, percentage;
$.each(this.series.data, function() {
total+=this.y;
});
percentage=((this.y/total)*100).toFixed(1);
return this.name+' '+percentage+'%';
}
score:8
Its suprisingly easy. In your tooltip or dataLabels section change your format.
FROM:
format: '<b>{point.name}</b>: {point.y:.1f} Rs.',
TO:
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
Source: stackoverflow.com
Related Query
- Displaying percentage inside pie item for highcharts
- Highcharts not displaying data labels for Pie chart in arabic
- highcharts pie dynamic label inside and outside for each slice
- Highcharts display label for pie chart using html table as data source
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Displaying percentage in Y-axis of Highcharts column chart
- Highcharts percentage of total for simple bar chart
- Highcharts - labels inside and outside a pie chart
- HighCharts Pie Chart - Add text inside each slice
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts pie dataLabels inside and outside
- HighCharts - Pie chart drilldown for multilevel (3 to 4 level)
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- How to center chart title position dynamically inside pie chart in highcharts
- Highcharts not displaying series data for graph with multiple Y-axes
- Displaying additional text for Highcharts Bubble chart
- Highcharts - Display legend for Pie chart in two columns
- highcharts donut pie - different color for the data than its drilldown
- Passing in Id for each data item in bar chart using highcharts
- Using connecting legends for two Highcharts pie charts
- Highcharts - where to place style and changing style for one wedge in a pie chart
- highcharts pie chart color for dynamic data
- Simple, Open source PHP wrapper for Highcharts library
- Displaying MoM in highcharts for uneven months
- Highcharts Semi Donut Pie with Negative Percentage
- Gson to get Json value for a pie chart using Highcharts
- Displaying count on bar and percentage on Y-axis of cloumn chart using Highcharts
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- jquery show() not displaying properly for highcharts graph
- HTML table as data source for highstock charts using highcharts
More Query from same tag
- Point title in bubble chart (Highcharts)
- Highcharts chart axis exceeding set min and max values
- Highcharts - curves goes outside the box
- Destroying and creating Highstock chart
- highcharts display percentage complete
- How do I add dynamic labels in highcharts while using motion plugin?
- Is it possible to reparent the high charts legend?
- How to add negative area or background for a specific bar or pie chart in highcharts?
- Highcharts --- Change sliced color on drilldown pie chart
- Highcharts Output Data to HTML Table
- how to pad y-axis for highcharts?
- highchart line don't show line even when data points exists
- Highcharts problems: variable legend height
- Highcharts yLow / yHigh not working
- Point marker disabled on normal state and enabled on select and hover states - it is not working for select state
- Iterate over a text label in HTML using JQUERY
- Highcharts - Remove first marker from Area chart in every series
- How to disable zoom in Navigator?
- Updating Y-Axis of Highcharts line graph causes vertical line
- Highstocks - Step line does not appear on chart export
- highchart boost doesn't render correctly when going above y-max
- How do I rotate the legend in Highcharts?
- formatting all the markers for the hovering series in a HighCharts scatterplot
- How to change Highcharts graph with HTML radio button input (JS/jQuery)
- How to get Render Performance for Javascript based Charting Libraries?
- How to change the radius of the data point dots depending on the value/count in the data-yaxis-HIGHCHARTS
- Histogram type highcharts access to series
- Same index in column chart Highcharts
- RallyChart Pie - Is there a way to consolidate data labels?
- How to display tooltip only for last point?