Legends display order using highcharts in pie chart - javascript

Using highcharts, legends are displayed in a horizontal manner. I am trying to display in vertical order (one series below the other) but I could not find any solutions for that.
In the image below, the order of legends are horizontal. Can someone help me figure out how to display the legend in a vertical order?

Use this snippet, it will place the label vertically in bottom of chart:
legend: {
verticalAlign: 'bottom',
layout: 'vertical
},
You can check it with this fiddler.

Related

Highcharts data label vertical alignment - bug

Im facing an issue with highcharts js library where im trying to put the value of the point inside the shape.
for this im using inside: true, verticalAlign: 'middle' for data label which seem to work just fine but whenever the point is at the start or at the end of the chart the label does not align correctly.
I have already tried offset and padding but its for the whole axis not the label.
I would really appreciate any suggestion, clues or solutions
http://jsfiddle.net/Andam/6km2fw31/1/
Highcharts tries to position data labels on a plot area due to default justify option for overflow. As a solution change overflow to allow.
dataLabels: {
enabled: true,
verticalAlign: 'middle',
crop: false,
overflow: 'allow'
}
Live demo: http://jsfiddle.net/BlackLabel/f2r7hL3j/
API Reference: https://api.highcharts.com/highcharts/series.column.dataLabels.overflow

Highchart loading animation not working when giving 'verticalAlign' for 'setTitle'

I am building a pie chart with highchart. I need to set custom title for my pie chart. And I need to align it to the center of the pie chart. Everything works fine except the initial circle loading animation of pie chart. If I remove
verticalAlign: 'middle',
It will work. The problem is only in highchart v7.1.1 . This animation is working fine in Highchart v7.0.3.
This is my codepen link.
Can any one please help me to fix it?
Reported issue: https://github.com/highcharts/highcharts/issues/10835
To workaround enable floating in title configuration object:
title: {
floating: true
},
Live demo: http://jsfiddle.net/BlackLabel/9nywd2mx/
API Reference: https://api.highcharts.com/highstock/title.floating

Highcharts: Align multiple charts in same container

Following this demo here (http://www.highcharts.com/docs/chart-and-series-types/combining-chart-types) I am trying to have a Pie chart and a bar chart on the same page.
The catch is I would like the Pie chart to be large on the left and then the bar chart on the right. I see the code to move the pie chart around, but I cannot figure out how to do the same with the bar chart, as it seems to want to span the entire container width. I understand that I could have two independent charts and place them in their own floating DIVs, but since the combining of charts is possible, I thought this would be a viable option.
You can set chart.marginLeft to half of the chart width. And set pie.center x coordinate to a negative value.
chart: {
marginLeft: 400
},
series: [{
center: ['-75%', '50%'],
example: http://jsfiddle.net/L55w9n53/

Highcharts issue when dealing with 3D pie and large labels

I am using highcharts 3D pie and if some label is a little bit long it does not resize correctly.
Here it is an example which I have taken from highcharts documentation and forked it for getting large labels.
http://jsfiddle.net/78wr256o/
It is important to mention that I would prefer to display the whole name and not cropping it. Resizing correctly the chart, keeping it centered and moving labels position if it is possible.
This is the initial version:
This is exactly the same chart but with a large label:
You can use html and css to format data labels.
series: [{...
dataLabels: {
useHTML: true,
style: {
"width": "30px"
}
......
Here is an example http://jsfiddle.net/8d517w3v/
It doesn't crop rather wrap labels around and make graph centered.

A bar serie next to a stacked bar chart with flot charts

Hi i have a stacked bar chart with time series like this :
But i need that yellow series to be next to the others like this :
I am not able to keep three series stacked while having another one not stacked and with an offset to the left. I tried different things but none of them works.
adding this when declaring the data did the trick:
data: theData,
stack:false,
bars: {show: true, align: "right" }

Categories