![]() | Steema Issues DatabaseNote: 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. |
| Summary: | [TM71016212] The legend is created and looks pretty good. However, the last item i... | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | sandra pazos <sandra> |
| Component: | iOS | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | major | CC: | pep |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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:]