score:13
Accepted answer
you should set float:left; for both divs inside legend.
labelformatter: function() {
return '<div style="text-align: left; width:130px;float:left;">' + this.name + '</div><div style="width:40px; float:left;text-align:right;">' + this.y + '%</div>';
Source: stackoverflow.com
Related Query
- HighCharts Pie Chart Legend value alignment
- Highcharts Pie Chart - Showing Negative value as "null" in legend
- Highcharts Pie Chart Add Value to the Legend
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Grand Totals in HighCharts Pie Chart Legend
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts - Display legend for Pie chart in two columns
- How to center highcharts pie chart and legend on a page?
- 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
- Highcharts display label for pie chart using html table as data source
- Gson to get Json value for a pie chart using Highcharts
- Highcharts pie chart legend items showing gradient colors
- Create a Highcharts Pie Chart Legend Inside a Table
- Highcharts make pie chart goal value only 50%
- Highcharts hide legend item from Pie chart
- Highcharts - Pie chart legend remains hoverable on second series
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- Highcharts pie chart height auto sized including legend
- how to show legend in PIE chart from chart to pie drilldown highcharts
- Highcharts Pie chart how to reduce space between chart and legend caused by plot width
- Highcharts same legend color as of the pie chart slice color
- Highcharts pie chart - offset a single slice on legend click
- 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 : Total Value is not showing in Pie Chart
- Highcharts pie spacing title - chart - legend
- How to set Highcharts chart maximum yAxis value
More Query from same tag
- How to draw a smooth line for a polynomial fuction?
- how to start semi circle donut chart angle from respective position in highchart?
- Highcharts bar graph doesn't show yaxis values
- Messed up LineChart with highcharts
- highcharts change chart type using dropdown for multiple series
- How to modify highcharts legend item click event?
- Break highcharts legend items into two lines
- Resize specific chart
- Exclude a specific series from exporting to csv
- DataLabels formatter in Highchart for the first category
- Highcharts set xaxis value from array
- How replicate the value of Y Axis on both sides of the axis in Highcharts
- label is not show at proper position at xAxis with dattime type into highcharts
- HIGHCHARTS - Jquery/Ajax access php variables from the php file called by ajax
- Spline graph not showing in highchart
- Cannot display name with special character in highchart
- Python Flask: Highcharts path allocation
- highchart with dual axis breakpoint and drag point
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts update graph from array data
- how to custom heatmap cell with padding?
- Select dynamic value with tooltip on line chart (highcharts) in angular with material slider
- How to implement Asynchronous drilldown in area charts in HIghcharts?
- Highcharts - Axis minPadding and maxPadding not working
- Events for HighCharts - MouseOver/MouseOut
- Remove series from chart when user clicks on legend?
- *Highchart* Disable Chart Title and display when Download/Print
- How to give box shadow for rect in highcharts?
- Highstock Chart - setExtremes event data missing
- Double donut-like chart with negative values