web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Chart x-axis Wrap Text command Fetchxml

(0) ShareShare
ReportReport
Posted on by 215

I have a column graph that cuts off the labels columns on the X-axis and I want the chart to wrap the text. I saw where CRM Chart Guy had a post saying to use the LabelAutoFitStyle="WordWrap" but when I load the xml I receive the "Invalid Presentation description" error stating that the LabelAutoFitStyle is unknown.

Here is the presentation data for the AxisY section from the FetchXML: 

<AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" Title="Client"TitleFont="{0}, 15.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
<MajorGrid LineColor="239, 242, 246" />
<MajorTickMark LineColor="165, 172, 181" />
<LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" LabelAutoFitStyle="WordWrap"/>

Any suggestions would be appreciated.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    I'm not sure if this will help but in C# you have to set the IsLabelAutoFit = "true" before specifying the auto fit style.

    I don't know if it is the same in fetchXML but you could give it a shot.

    Good luck.

  • Verified answer
    Ulrik Profile Picture
    105 on at

    Hey Devon

    The LabelAutoFitStyle='WordWrap' should be in the axis properties. Not in the LabelStyle properties like you have it in the example above.

    Kind of like this, so just move it up a few lines.

    <AxisY LabelAutoFitMinFontSize="8" LabelAutoFitStyle='WordWrap' TitleForeColor='59, 59, 59'

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans