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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Legend Position & Size

Thread ID:

Created:

Updated:

Platform:

Replies:

21340 Nov 8,2004 11:01 AM UTC Nov 14,2004 07:50 PM UTC WinForms 2
loading
Tags: Chart
Andrew
Asked On November 8, 2004 11:01 AM UTC

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 01:12 PM UTC

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 07:50 PM UTC

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.

Warning Icon 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.Close Icon

;