DannE Posted October 29, 2007 Report Share Posted October 29, 2007 How can you specify the ChartFX width to be the width of the page? I tried setting the width property to 100% but it reduces the width to 1/4 of the page width, can it be done? Quote Link to comment Share on other sites More sharing options...
maximop Posted October 29, 2007 Report Share Posted October 29, 2007 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. Quote Link to comment Share on other sites More sharing options...
maximop Posted October 29, 2007 Report Share Posted October 29, 2007 I just noticed you are using ChartFX for .NET 6.2. The sizeable property is set as follows in this product: Chart1.ImgSizeable = true; Quote Link to comment Share on other sites More sharing options...
DannE Posted October 31, 2007 Author Report Share Posted October 31, 2007 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 ? Quote Link to comment Share on other sites More sharing options...
maximop Posted October 31, 2007 Report Share Posted October 31, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.