Jump to content
Software FX Community

ChartFX width


DannE

Recommended Posts

To set the size of the chart based on the size of the page, you can do the following:

Chart1.Width = Unit.Percentage(100);

Chart1.Height =

Unit.Percentage(100);

Chart1.ImageSettings.Sizeable =

true;

Make sure that the sizeable property is set to true so the chart is resized whenever the page is.

Link to comment
Share on other sites

When I do chModContribution.Height = Unit.Percentage(100) along with chModContribution.Width = Unit.Percentage(100) the chart doesn't show. But if I only chModContribution.Width = Unit.Percentage(100) the chart shows up but it is stretched horizontally. Any way to maintain aspect ratio? Any reason why the chart doesnt show ?

 

Link to comment
Share on other sites

I am unable to replicate this issue. I was able to stretch the chart by setting those properties as I explained before. I did the following:

Chart1.Width = Unit.Percentage(75)

Chart1.Height = Unit.Percentage(55)

Chart1.ImgSizeable = True

Please apply the latest service pack to ensure that you are using the latest version of ChartFX for .NET 6.2:

http://support.softwarefx.com/ShowInteractive.aspx?Product=CfxNet62&option=0

If the problem persist, please attach a sample project where you are able to replicate this issue.

Link to comment
Share on other sites

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.

×
×
  • Create New...