We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Layout of Chart Elements

Thread ID:

Created:

Updated:

Platform:

Replies:

78248 Dec 4,2008 06:47 PM Dec 5,2008 09:35 AM WPF 3
loading
Tags: Chart
Administrator [Syncfusion]
Asked On December 4, 2008 06:47 PM

I am coding a UserCotrol containing an Area Chart.
I want to show only graph, no axis labels, no axis ticks.
Can I stretch ChartArea to the border of the Chart, eliminating any margin or padding?
Similary, can I stretch the Series the entire UserControl Area?



Pavithra J [Syncfusion]
Replied On December 5, 2008 07:35 AM

Thankyou for using Syncfusion Products.

Labels can be removed by setting the property LabelsMode="None" for both primary and the secondary axis.

Once you set this property the ticks in the ChartArea will automatically get removed. The explicit way to remove the ticks is by setting the property SmallTicksPerInterval="0" for ChartAxis.

You can make the ChartArea to stretch towards the border by setting the Margin Property of ChartArea to appropriate value.

For your reference I have created a sample and you can download from the link,

http://websamples.syncfusion.com/samples/WPF/F78248/main.htm

Please let us know if you have any queries.

Thanks


Saradha [Syncfusion]
Replied On December 5, 2008 09:13 AM

Hi Joseph,

Labels can be removed by setting the property LabelsMode="None" for both primary and the secondary axis.

Once you set this property the ticks in the ChartArea will automatically get removed. The explicit way to remove the ticks is by setting the property SmallTicksPerInterval="0" for ChartAxis.

You can make the ChartArea and chart to stretch by setting the Margin property to appropriate value.

Please refer to the sample that shows this behavior and let me know if this fulfils your requirement.

Regards,
K. Saradha Devi.




ChartUsercontrol_d28c5898.zip

Administrator [Syncfusion]
Replied On December 5, 2008 09:35 AM

Thank you all, pavithra and K. Saradha Devi.:

Your example sources are valuable and working perfect as I want.
I had thought that the Margin should be zero (0) to stretch up to the container.

Thank you very much for your help,
Joseph


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;