score:1
Accepted answer
Try to use this code instead, where 2f
is a number of decimals value:
Demo: https://jsfiddle.net/BlackLabel/ukc1tf3p/
legend: {
labelFormat: '{name} {y:.2f}',
},
API: https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#format-strings
Source: stackoverflow.com
Related Query
- Highcharts Pie Chart Add Value to the Legend
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- HighCharts Pie Chart Legend value alignment
- Highcharts Pie Chart - Showing Negative value as "null" in legend
- Highcharts same legend color as of the pie chart slice color
- Add labels to columns in highcharts pie chart legend
- Highcharts same legend color as of the Pie chart slice color?
- Displaying max value in bottom of the pie chart - highcharts
- HighCharts - Make the pie chart 100% of the div
- Highcharts - Legend Positioning outside the chart
- HighCharts Pie Chart - Add text inside each slice
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- Grand Totals in HighCharts Pie Chart Legend
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts, How can I change the datalable distance in a pie chart based on the value
- Add onclick event on chart made with the highcharts library
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts - Display legend for Pie chart in two columns
- Highcharts - Rotate pie chart aligning the clicked section to a fixed point (180°)
- How to center highcharts pie chart and legend on a page?
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- Creating series/group titles in legend in Highcharts JavaScript pie chart
- Show tootip and select pie slice on legend click of pie chart in HighCharts
- Redraw the pie chart in oval shape highcharts
- Highcharts - how to do a responsive pie chart when the texts of the labels are long
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- How to add one more value against at the end of each bar with a legend
- How can I add a text link just below the legend box in highcharts
- Highcharts display label for pie chart using html table as data source
- Highcharts -> how to add vertical title to bar? how to make the symbol in the legend a rectangle?
More Query from same tag
- HighCharts Semi-Pie Circle
- Highcharts plotOptions.pie.dataLabels.formatter gets called multiple times for same data
- HighCharts Line xas datetime
- HIghcharts.js add catgories with addseries on column chart
- Stacked column inside drilldown - HighCharts
- Highcharts minPointLength on columnrange not working
- Highstock get detailed info when data is grouped
- tickmarkPlacement 'between' doesn't work
- Fixing "Uncaught ReferenceError: Highcharts is not defined" in Rails app
- Highstock MACD Study is using sma instead of ema
- HighStocks needs to display categories instead of date
- Highcharts: How to access range values in formatter for "columnrange" type?
- Invert Y axis in Highcharts
- Highchart ticks start point change when categories names are set
- Building different types of Highcharts Programmatically.
- Drawing a line between 2 points in line chart using Highcharts?
- Highcharts 100% (height width) in Card from ng2-admin - Angular2 ng2-admin Template
- How to change json jackson format for highcharts json
- highchart tooltip not follow mouse
- High chart spline chart is not plotting with single data
- using library highcharts with asp.net mvc 3
- Highcharts with react Error: "missingModule" with chart type of "timeline"
- Class 'ConsoleTVs\Charts\Facades\Charts' not found in laravel Charts
- How to transform this array in a json?
- Highcharts 3 suppor for Android 2.x
- Sql DataReader and Multiple Object Variables
- Java Script Type Error while adding Stock Chart to GWT SimplePanel
- Highcharts - Multiple pie charts from json
- Highcharts max interval for dateTime in x-axis?
- Pass event from overlayed div to Highmaps