score:1
Accepted answer
It occurs because you placed the showInLegend
inside of the dataLabels
configuration object, instead of pie
. Please just cut/paste it directly to plotOptions.pie
object, and everything will works as you expecting.
data: {
table: document.getElementById('datatable')
},
chart: {
type: 'pie',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
legend: {
//align: 'center',
//verticalAlign: 'top'
},
title: {
text: 'Subject Breakdown'
},
tooltip: {
pointFormat: '{point.name}: <b>{point.y}</b>',
percentageDecimals: 1
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return '<b>' + this.point.name + '</b>: ' + this.y;
},
},
showInLegend: true
}
}
Live example: http://jsfiddle.net/qw5y4nvm/
API Reference: https://api.highcharts.com/highcharts/plotOptions.pie.showInLegend
Source: stackoverflow.com
Related Query
- Highchart (pie chart) with data from HTML table not displaying legend
- Highchart not displaying the pie chart with Ajax data
- Highcharts display label for pie chart using html table as data source
- Highchart Data from HTML table with <input> values
- Highchart Data from HTML table with line series
- Pie Chart is not coming with dynamic data in HIghChart
- Highcharts not displaying data labels for Pie chart in arabic
- How to get text from html table in pie chart (highchart)?
- HighChart Sparkline Chart with dynamic data for the table
- Pie Chart for Data on Different Things with HighChart
- Highcharts loading data from a HTML table with a title
- Issue with JSON data encoded from the server, not able to plot the chart
- pie chart legend overlap with older legend when replace series in highchart
- HighCharts populate Pie Chart with data from SQL Database
- my highchart is currently is not working with pie spline chart in updating after rendering chart
- Highcharts not displaying data but drawing chart when reading from CSV file
- Reversed series on bar chart with data loaded from table
- Fomatting labels on Y-axis in Highcharts with Data from HTML table
- Stacked Bar type of jquery Highcharts with data from HTML Table
- Highcharts, exclude data point from legend on pie chart
- Highchart Pie Chart not working properly with series
- Highchart not showing 0 data correctly for pie chart
- How to make pie chart with data border radius in highchart
- Data label not showing in some pie chart handles Highchart
- Invert axis on highchart diagram with data from table
- Highcharts combining a column and spline chart from an html data table
- HighCharts pie chart X-axies values are not displayed while trying to get data from MySQL database using PHP
- How do I add a dropdown to change endRow value in a chart displaying date from an HTML table
- pie chart in highchart with dynamic data
- Highchart : Line Chart not Loading the data from Database on screen
More Query from same tag
- Is there any replacement of "zones" in highcharts?
- Moving Highcharts series in front of other series with toFront() doesn't work
- HighCharts dont get value
- Disable "fill" attribute when using Styled CSS
- Highcharts click events not firing when displaying multiple line series
- How can I display crosshair labels on top of the chart with Highcharts
- Angular HighCharts Heatmap will not display with error 15
- Uncaught Highcharts error #19: www.highcharts.com/errors/19
- Highchart json from mysql data not able to show up in line graph
- Opacity colors in Highcharts (with default color)
- Why doesn't dataGrouping.units work here?
- Add series total to legend in Highcharts
- Set properties for a cell in a heatmap
- highcharts splines chart - large data should plot specific data only
- Highcharts stuck on panning
- changing page output view after click event on highchart plot point
- add hyperlinks to table entries
- How do i combine a horizontal bar graph with a line chart?
- highcharts render does not match grid in docraptor rendered pdf
- Highcharts Pie Chart - slice color dependent of category
- Javascript HighCharts reading from a different format
- Highchart angular overflows container
- Angular Module Is not a function - Highcharts-ng appearing on .aspx web form
- Highcharts Pie Donut Customize shape
- Using Highcharts with FastAPI
- Using high charts' 'rows' property from the 'data' module
- highcharts minPointLength do not work for unstacked bar chart
- How to load html page with dynamic content?
- Change cursor on legend after disabling click
- R - leaflet - highcharter tooltip