Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 357 - [TM71016212] The legend is created and looks pretty good. However, the last item i...
Summary: [TM71016212] The legend is created and looks pretty good. However, the last i...
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: iOS (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 13:13 EDT by sandra pazos
Modified: 2013-11-20 11:25 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2013-11-20 11:25:23 EST
The legend is created and looks pretty good. However, the last item in the list always seems to run over the end of the legend box. I have checked if the same problem occurs when use WinForms and the behavior is different and the problem doesn't appear, basically when the item doesn't fit in the rectangle of legend, the legend is resized. I think that the legend in MonoTouch must have same behavior as in WinForms.
I have made attached a simple code I used to reproduce the behavior in Winforms.
public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            tChart1.Dock = DockStyle.Fill;
            for (int i = 0; i < 4; i  )
            {
                new Steema.TeeChart.Styles.Line(tChart1.Chart);
                tChart1[i].FillSampleValues();
            }
            tChart1[0].Title = "Operating";
            tChart1[1].Title = "Occupied";
            tChart1[2].Title = "Pct Occupied";
            tChart1[3].Title = "Target Pct Occupied";
            //Setup the chart legend on the bottom of the graph.
            tChart1.Legend.Visible = true;
            tChart1.Legend.LegendStyle = LegendStyles.Series;
            tChart1.Legend.Alignment = LegendAlignments.Bottom;
            tChart1.Legend.AutoSize = true;
            tChart1.Legend.Symbol.WidthUnits = LegendSymbolSize.Pixels;
            tChart1.Legend.HorizMargin = 15;
            tChart1.Legend.Width = 600;
            tChart1.MouseClick  = new MouseEventHandler(tChart1_MouseClick);
            //Sandra adding
            //tChart1.Legend.Symbol.Width = 15;
            //tChart1.Legend.MaxNumRows = 1; 
        } [created:2012-06-06T12:13:52.000+01:00 reported by:sandra@steema.com reported in version:]