score:3
Accepted answer
You can add the icons inside the labels of your dataset. Something like <i class='fa fa-times'></i>
. By default any HTML is stripped from your labels, but you can enable it by setting dataLabels.useHTML
to true
.
In short, you would have to change this:
series: [{
type: 'pie',
name: 'PPM Resource Waste',
data: [
['Blank', 60],
['Icon 1%', 5],
['Icon 15%', 15],
['Icon 1%', 5],
['Icon 5%', 5]
],
animation: false
}]
to something similar to this:
series: [{
type: 'pie',
name: 'PPM Resource Waste',
data: [
['<i class="fa fa-dollar fa-2x"></i> Blank', 60],
['<i class="fa fa-save"></i> Icon 1%', 5],
['<i class="fa fa-cutlery"></i> Icon 15%', 15],
['<i class="fa fa-ban"></i> Icon 1%', 5],
['<i class="fa fa-spinner fa-spin"></i> Icon 5% ', 5],
],
dataLabels: {
useHTML: true
},
animation: false
}]
as you can see in your updated fiddle: http://jsfiddle.net/z98ofd63/1/
Source: stackoverflow.com
Related Query
- How can I get a data label in my Highcharts Pie Chart that is a font-awesome icon?
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts display label for pie chart using html table as data source
- How can i get pie chart with dynamic json data in Angular js
- How can i use double click in Highcharts and get that data
- How can I get access to a Highcharts chart through a DOM-Container?
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How can I get a chart only with legends using highcharts
- How can I get highcharts Donut chart to auto calculate percentages
- Can I add on the webpage, data that I get from a Highcharts function?
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- In highcharts how can I provide data with values x, y, title so that I can put the title in the tooltip?
- How to get Pie Chart data to display using AppCoda example and iOS Charts?
- How can i load external json data in highcharts to show the bar chart
- How to show correctly ticks to time data in a Pie chart label using highcharts?
- How to pass JSON data to update Highcharts Pie chart
- How can I get HighCharts column chart to scale the yAxis to not have so much whitespace?
- how to make chart real time with 2 line and get data from php with highcharts
- Highcharts - How to get the particular chart id on click of custom label in export options
- Position single data label of highcharts pie chart centered below the chart
- Highcharts Pie Chart turning off data label
- Highcharts - How can I get the name to display in the pie wedges?
- HighCharts pie chart X-axies values are not displayed while trying to get data from MySQL database using PHP
- How to change Highcharts 3D Pie Chart Label and Tooltip Style?
- How can I put text within horizontal bar chart data points using Highcharts as well as adding text underneath each data point? Example below:
- How can I contain a label on a Highcharts area chart to the series' area
- The RTL language (Arabic) is not working with HighCharts pie chart correctly, how can I fix this?
- How can I maintain the Highcharts halo effect on pie chart after click and mouseOut?
- How can I pull only specific columns \ cells from csv in <pre> tag, into highcharts pie chart
- How to get column chart in angular using highcharts using dynamic data
More Query from same tag
- Highcharts - Even tick with uneven spacing
- Highcharts loading image
- Verical DataLabels cuts off in Bar Highchart
- How to save Highcharts image on server auomatically
- highcharts non numeric range on secondary yAxis
- Highcharts PIE chart series color doesn't change
- Highcharts Remove Space across the x-Axis
- Highcharts combination chart from JSON data
- Newline axis labels exporting to SVG
- high charts line graph x-axis issue
- How to use .top() method in a crossfilter group with nested values
- How to format yaxis value with millions and billion initial letter in Highcharts?
- NaN date issue with jQuery
- How to use data in rChart Highcharts
- HighCharts and Javascript to pass data as array
- How to use highcharts bubble to display more than 3 columns data?
- $scope.$watch ... make it return a function on another scope?
- How can I prevent tooltip to appears when I hover another element?
- How to process json object in highchart
- React: How to show correct date and plot data as Months in Highcharts
- High charts not displaying date correctly in x axis per epoch?
- How to add rotation event to an ember highchart graph?
- sort/arrange on date in dashboard
- How do I select a series in a spline by clicking on the spline in between the points?
- How can I adapt a Highcharts graph to a responsive view
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Wrong date display in Highcharts graph
- set all div in html without vertical scrollbar
- how to implement moving average in highchart
- Installing Highstocks for Rails app