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.

Legend Position & Size

Thread ID:

Created:

Updated:

Platform:

Replies:

21340 Nov 8,2004 06:01 AM Nov 14,2004 02:50 PM Windows Forms 2
loading
Tags: Chart
Andrew
Asked On November 8, 2004 06:01 AM

Hello, I''m trying to display my legend at the bottom of my chart with a vertical orientation (see code below). However, the height of the legend is always too small to display all my legend items (5 items) in a vertical orientation. I thought that if I adjusted the bottom chart area margin that my legend would scale to the correct size. Unfortunately this was not the case. Therefore my question is this: How do I adjust the height of my legend to so that it displays correctly in a vertical orientation? Me.ChartCntrlStrScrd.Legend.RepresentationType = ChartLegendRepresentationType.SeriesType Me.ChartCntrlStrScrd.LegendPosition = ChartLegendPosition.Bottom Me.ChartCntrlStrScrd.ChartAreaMargins.Bottom = 30 Me.ChartCntrlStrScrd.Legend.Orientation = Orientation.Vertical Me.ChartCntrlStrScrd.Legend.ShowBorder = False Thank you, Andrew

Davis Jebaraj [Syncfusion]
Replied On November 9, 2004 08:12 AM

Hi Andrew, We regret that the Chart doesn''t automatically adjust the Legend''s height when the Orientation is set to Vertical and positioned at the bottom. You can workaround this problem by handling the MinSize event of the Legend. Please refer to the sample linked below: 21340ChartLegendPosition_6850.zip Thanks, Davis

Andrew
Replied On November 14, 2004 02:50 PM

Thanks for the helpful response. Andrew >Hi Andrew, > >We regret that the Chart doesn''t automatically adjust the Legend''s height when the Orientation is set to Vertical and positioned at the bottom. > >You can workaround this problem by handling the MinSize event of the Legend. > >Please refer to the sample linked below: > >21340ChartLegendPosition_6850.zip > >Thanks, > >Davis >

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.

;