Sign in to follow this  
xuen

Pyaxis Name Length Issue

Recommended Posts

Hi,

 

I encounter an issue which is when the PYaxisName is too long, the alignment is not nice (not center).

 

Please see the image below and the XML text file.

 

Please help.

Thanks.

post-28088-0-08066900-1346904926_thumb.jpg

PYAxis Issue.txt

Edited by xuen

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Your chart contains large amount of data. Depending on this data legend is also rendered. Also, chart labels are in rotated manner with slant property.

 

Due to legend icons and rotated (slant) labels, chart is managing space here.

 

Chart is calculating the alignment for PYAxisName to be appeared at the center, from the bottom of the legend to the uppermost portion of the chart.

 

Hence, the PYAxisName is getting displayed in this way.

 

As a work-around, you can align the legend using legendPosition attribute. You can align the legend at the right side of the chart.

 

Ref. Code:

<chart ... legendPosition='Right'>

 

And, you can also configure legendNumColumns, with the help of this attribute you can specify the number of columns that are to be displayed in the legend.

 

Increase the value of lengendNumColumns attribute.

 

Ref. Code:

<chart ... legendNumColumns='25'>

 

For more information, please refer the XML sheet of MSCombiDY2D chart:

http://docs.fusionch.../Combi2DDY.html

 

Please find attached screen-shot of the chart using the provided XML with above mentioned attributes configuration.

post-24802-0-60540500-1347360576_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for your reply.

You mention "Chart is calculating the alignment for PYAxisName to be appeared at the center, from the bottom of the legend to the uppermost portion of the chart."

 

But if I shorten the PAxisName = "Other Than Channel" and SAxisName = "Online", both can be in the center. The PAxisName doesn't look like is in the center from the bottom of the legend to the uppermost porttion of the chart.

 

Is there any scenario only will happen to render the PAxisName to be appeared at the center, from the bottom of the legend to the uppermost portion of the chart.?

 

Please see the attached image.

 

Thanks.

 

 

 

Hi,

 

Your chart contains large amount of data. Depending on this data legend is also rendered. Also, chart labels are in rotated manner with slant property.

 

Due to legend icons and rotated (slant) labels, chart is managing space here.

 

Chart is calculating the alignment for PYAxisName to be appeared at the center, from the bottom of the legend to the uppermost portion of the chart.

 

Hence, the PYAxisName is getting displayed in this way.

 

As a work-around, you can align the legend using legendPosition attribute. You can align the legend at the right side of the chart.

 

Ref. Code:

<chart ... legendPosition='Right'>

 

And, you can also configure legendNumColumns, with the help of this attribute you can specify the number of columns that are to be displayed in the legend.

 

Increase the value of lengendNumColumns attribute.

 

Ref. Code:

<chart ... legendNumColumns='25'>

 

For more information, please refer the XML sheet of MSCombiDY2D chart:

http://docs.fusionch.../Combi2DDY.html

 

Please find attached screen-shot of the chart using the provided XML with above mentioned attributes configuration.

post-28088-0-40804700-1347417221_thumb.jpg

Edited by xuen

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

centerYAxisName='0' attribute is supported only in Flash charts and in case you are using JavaScript charts this attribute is not supported.

 

Chart automatically allocates space for legend and rotated labels at x-axis, so PYaxisName is rendered accordingly. Since this depends on the data you are passing to the chart.

Share this post


Link to post
Share on other sites

Hi,

 

So the only work around are:

1. Align the legend position to right

2. Increase the value of lengendNumColumns attribute.

 

 

 

Hi,

 

centerYAxisName='0' attribute is supported only in Flash charts and in case you are using JavaScript charts this attribute is not supported.

 

Chart automatically allocates space for legend and rotated labels at x-axis, so PYaxisName is rendered accordingly. Since this depends on the data you are passing to the chart.

Share this post


Link to post
Share on other sites

Hi,

 

one more question. Can the PYAxisName to be wrap text?

Please see the attached image.

 

 

Hi,

 

Yes, it is the only work-around.

post-28088-0-48633700-1347960891_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the reply.

It is helpful.

 

 

Hi,

 

Not directly. However, you can use {br} inside your axis names to represent a New-Line character which will break the names into multiple lines.

 

Example:

 

PYAxisName='Customer Count{br}(Other Than Online)' SYAXisName='Customer Count{br}(Online)'

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
Sign in to follow this