score:1
You get original percentage value from point, which it is not rounded. Use JS Math.round
function:
chart1.renderer.text(Math.round(chart1.series[0].data[0].percentage) + '%', 62, 80)
.css({
width: circleradius * 2,
color: '#4572A7',
fontSize: '16px',
textAlign: 'center'
})
.attr({
zIndex: 999
})
.add();
Live demo: https://jsfiddle.net/BlackLabel/0z4hLbaw/
Source: stackoverflow.com
Related Query
- Highchart remove decimal places
- Highchart axis 2 decimal places
- How to remove decimal time at tooltip on React Highchart
- Customize tooltip and format the number to 2 decimal places of highcharts
- Remove Export and print button plugin on highchart chart
- Remove Zero From the HIGHCHART
- highcharts - removing decimal places on Y axis with only one point
- Columns HighChart remove spacing for empty data series
- Remove Image/Symbol from Highchart Graph
- Highcharts - show decimal places only if needed
- remove previous markers and retain only single marker highchart
- Highcharts : yAxis, values rounded to a maximum of two decimal places
- How to disable or remove the default HighChart loading message?
- how to remove scroll bar in drill down highchart
- How to remove Title from highchart flags
- Pie Highchart remove path to description
- Remove elements in a chart generated with highchart
- How to remove decimal values on x-axis of bar chart : Highcharts
- highchart remove first point
- How to push data into highchart with just one decimal place?
- Remove exporting button from HighChart Objective-C
- how to remove a total value in highchart
- Remove image drawn on Highchart
- Strange character in the Highstock source code
- Remove spacing on a HighChart graph?
- Why does my Highchart look different when I transfer my code from Jsfiddle to my server?
- Remove Highchart series in shiny
- Remove datalabels from formatter with Highchart
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- How to remove the decimal .00 from the default highcharts configuration?
More Query from same tag
- Highcharts with ajax and json data what am i doing wrong?
- Highcharts Error 13 on Ajax Result and Dynamic Div
- Highcharts adds duplicate xmlns attribute to SVG element in IE
- Highcharts legend hover for bar chart?
- why its difficult to set point padding and placement dynamically according to the data in fixed column chart (highcharts)?
- Showing a value as DataLabel in HighCharts
- Drilldown in Sankey Diagram
- How to convert datetime string to UTC to plot points on Highcharts
- Highcharts mixed column/spline, wrong xaxis labels
- Accessing functions in a highcharts click event in an ionic project
- Print charts in new tab
- Highcharts doesn't work
- Highcharts markers positioning errors in IE8
- All series data are equal highcharts
- How to change colors of a highcharter matrix/heatmap?
- HighCharts - hide date on x-axis and have only hours and minutes
- How to align Highcharts datetime x-axis with data I pass to it?
- Managing Data to Highcharts from Webservice
- HighCharts - 2nd yAxis graphs not scaling correctly
- Highcharts legend labels go outside canvas
- Highcharts spline chart, display summed by week, month?
- Highcharts 7.0.3 with Xpages/dojo
- Highcharts points not cleared out in firefox
- Highcharts - Multiple Y axis
- Highcharts: How to Change type of Graph
- Dynamic Highcharts with maximum xaxis points
- how to remove black color from circle?
- Append onload or redraw event functions dynamically in Highcharts
- Highchart tooltips formatter issue
- Native Android SDK graph