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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...