Jump to content
Software FX Community

Label Overflow


Oops
 Share

Recommended Posts

I have a chart tat needs to display dates vertically...but every time i set the label angle property to 90, the chart just overflows the months over the edge...

here are the settings i have configured :

HTML Markup:

<chartfx7:Chart ID="Chart1" runat="server" EnableTheming="False" ImageSettings-Interactive="False" Personalize-Enabled="False" Personalize-EnableRestore="False">

<AxisY>

<Line Color="Black" />

</AxisY>

<AxisX>

<Line Color="Black" />

</AxisX>

<Series>

<chartfx7:SeriesAttributes />

<chartfx7:SeriesAttributes />

<chartfx7:SeriesAttributes />

</Series>

<LegendBox Visible="False">

</LegendBox>

<SpecialObjects>

<chartfx.webforms.adornments.simpleborder assemblyname="ChartFX.WebForms.Adornments"

color="Transparent" type="None"></chartfx.webforms.adornments.simpleborder>

<chartfx.webforms.adornments.solidbackground assemblyname="ChartFX.WebForms.Adornments"></chartfx.webforms.adornments.solidbackground>

</SpecialObjects>

</chartfx7:Chart>

Code Modifications :

Chart1.Data.Series = 1;

Chart1.AxisX.LabelAngle = 90;

Chart1.AxisX.LabelsFormat.Format = ChartFX.WebForms.AxisFormat.DateTime;Chart1.AxisX.LabelsFormat.CustomFormat = "MMM";

Chart1.AxisX.Step = 30;

Chart1.AxisY.LabelsFormat.Format = ChartFX.WebForms.AxisFormat.Number;

Chart1.AxisY.Step = 300;

Chart1.BackColor = System.Drawing.

Color.White;

Chart1.Border.Color = System.Drawing.

Color.White;

 

I have attached a screenshot of the chart when its overflowing in this way...i have tried chaging the margins (which messed it up further) and i have tried to increase the chart size, but it just magnifies what you are seeing right now.

What needs  to be changed to get this to fit ?

Thanks

 

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...