Apurva

Y axis alignment to left and wrap long text in Heatmap

Recommended Posts

Hi,

I've created a Heatmap, it's X axis is at top (horizontal) and Y axis is at left side (vertical). 

I need to know if following is possible, as I tried so many options but nothing worked. 

1. Align the y axis lables to the left instead of right, 

2. Wrap the lables for longer texts

3. Can I have a fixed space to fit the y axis? 

Please let me know. 

Thanks

Apurva

Share this post


Link to post
Share on other sites

Hi Apurva,

 

Please find the possible solutions for the queries in the sequence asked :

1. The labels are automatically aligned towards the chart canvas for either of the y-axis positions. It cannot be aligned explicitly.

2 and 3. It is possible to wrap the long labels, and you can set the maximum width of the labels allowed in percentage out of the entire chart width. If the labels exceed the mentioned percentage then they would be wrapped automatically. Supported attributes : minLabelWidthPercent and maxLabelWidthPercent.

Refer to the sample fiddle : http://jsfiddle.net/yadLstb5/1/

Also check the attribute list for the description of the mentioned configuration attributes : https://www.fusioncharts.com/dev/chart-attributes/heatmap

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now