Long Name Legends Getting Truncated

Posted: October 11, 2011 in ASP.Net Microsoft Chart

If you have charts with long names, these might get truncated when the chart is rendered. You can set the property TextWrapThreshold to increase the length of the legend when it is displayed as follows:

<asp:Chart id="MyChart" runat="server" EnableViewState="true">
  <asp:Legend TextWrapThreshold="600" IsTextAutoFit="false" Name="Default"></asp:Legend></legends>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s