Highcharts Heatmap Show x-axis on top and bottom both - highcharts

Is it possible to show the x-axis and corresponding labels on top and bottom of the graph instead of only the bottom?

Related

In a Google Sheets Combo Chart graph, how do I shift the right vertical axis to align to zero

I have created a Combo Chart in Google Sheets.
It is located here and you may view it in Google Sheets:
https://docs.google.com/spreadsheets/d/1ONyBoutlNBC__0HqMmhtCL1AWxgoqHiiHg1FxTdXiE0/edit#gid=329592931
I've also marked up what I'd like to do with the green time series line. I'd like to shift the right vertical axis to align to the x axis zero (both left and right).
So, essentially, I'd like to do something like this... where the green line is pulled upwards so that the left vertical axis AS WELL AS the right vertical axis are set at zero (0):
Ideas how to alter the right vertical ?

How to adjust the position of labels in highcharts

Is there a way to adjust the position of the upper Y-axis lables as shown below
Example
If you want to move xAxis.labels at the top of the chart, you need to set xAxis.opposite to true.
Demo:
https://jsfiddle.net/BlackLabel/zh1L5djk/
API Reference:
https://api.highcharts.com/highcharts/xAxis.opposite

How to align multiple charts with different data

I have three pie charts displayed in a row. Two have two segments, one has five. All three have vertical legends.
Given that, the chart with five segments displays the pie slightly smaller, due to the extra height of the legend. It also has a slight negative vertical offset.
Is there any way I can set all three charts to render the chart in the same position? I've tried setting the center to 50%,50% in plotOptions, didn't help.
You have to set the marginBottom-Value of the chart to a value that is equal an all charts. Highcharts is trying to display the pie as big as possible, therefore it will use more space if the legend is not as big.
By setting the marginBottom you force the chart to ignore the actual legend size.
The center: ['50%','50%'] setting will only take into account the actual plot area. So if this area is decreased because of a taller legend it has no effect.
I made a jsfiddle where you can explore this settings:
http://jsfiddle.net/doc_snyder/dsmgy6ts/

Core Plot horizontal bar chart on negative y-axis

I have a requirement to draw Core Plot horizontal bar chart with everything on the negative y-axis. I.e. the first index should appear at -1, like below:
I have figured out how to draw horizontal Bar Chart. But figuring out how to draw them in an "inverted" manner (to let user scroll downward with the tallest bar on top). My thought:
1) Convert the Y-index to negative
2) offset the Y-axis to the top of the graph instead of bottom
Is there any better way to do it?
I have found a historical article that's similar to my request (core-plot iOS reversed Y axis).
I have got what I needed after using this:
CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(-yMax-1) length:CPTDecimalFromFloat(yMax)
P.S. you need to add the -1 to the Location parameter (-yMax-1) otherwise the horizontal bar at index 0 will not be shown clearly.

Teechart Legend Style

In My Code there is requirement when user click on a Bar of a series the CheckBox Style of the Series should be changed to none.But when i do that my Chart Width is increasing. IS there any way we can keep the chart width fix irrespective of legend table width.
Thanks
Akshay
This Can be done
GetLegend().SetResizeChart(false);
GetLegend().SetCustomPosition(true);
GetLegend().SetPositionUnits(muPercent);
GetLegend().SetLeftPercent(83);
GetLegend().SetTopPercent(10);
Set your legend Alignment in bottom for Avoiding width increment of chart as below.
Chart.GetLegend().SetAlignment(laBottom);
if you want custom position of legend (Right side of chart)then you can do as below.
m_Chart1.GetLegend().SetCustomPosition(TRUE);
m_Chart1.GetLegend().SetPositionUnits(muPercent);
m_Chart1.GetLegend().SetTopPercent(20);
long leftmargin = 80.0;
m_Chart1.GetLegend().SetLeftPercent(leftmargin );
m_Chart1.GetPanel().SetMarginRight(100-leftmargin+1);//for avoiding overlapping of legend and chart
Also you can finetune your legend and chart by modifying above value

Resources