2015-05-24 3 views
1

Я создаю приложение iOS (унифицированное) с использованием Xamarin. Я также использую TeeCharts. У меня очень простая гистограмма, чьи метки нижней оси повернуты на 90 градусов (вертикальные метки). Нижняя ось показывает даты (10 дней, начиная с сегодняшнего дня). Я также установил формат даты на «MM/dd».Ярлыки нижней оси TeeChart обрезаны в iOS

Вот мой код:

private void CreateChartUI() 
    { 
     CGColor textColor = UIColor.Black.CGColor; 

     this.Chart.Aspect.View3D = false; 
     this.Chart.Header.Text = String.Empty; 
     this.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; 
     this.Chart.Zoom.Active = false; 
     this.Chart.Zoom.Allow = false; 
     this.Chart.Panning.Allow = ScrollModes.None; 
     this.Chart.Legend.Visible = false; 
     this.Chart.Header.Text = "Test"; 

     // Walls 
     this.Chart.Walls.Back.Pen.Visible = false; 
     this.Chart.Walls.Back.Gradient.Visible = false; 
     this.Chart.Walls.Back.Color = UIColor.Gray.CGColor; 

     // Left axis 
     this.Chart.Axes.Left.AxisPen.Visible = false; 
     this.Chart.Axes.Left.Grid.Visible = false; 
     this.Chart.Axes.Left.Ticks.Visible = false; 
     this.Chart.Axes.Left.MinorTicks.Visible = false; 
     this.Chart.Axes.Left.MinorGrid.Visible = false; 
     this.Chart.Axes.Left.Grid.Style = Steema.TeeChart.Drawing.DashStyle.Solid; 
     this.Chart.Axes.Left.Grid.Color = UIColor.White.CGColor; 
     this.Chart.Axes.Left.Grid.Width = 2; 
     this.Chart.Axes.Left.Labels.Font.Color = textColor; 
     this.Chart.Axes.Left.MaximumOffset = 30; 

     // Bottom axis 
     this.Chart.Axes.Bottom.AxisPen.Visible = false; 
     this.Chart.Axes.Bottom.Grid.Visible = false; 
     this.Chart.Axes.Bottom.Ticks.Visible = false; 
     this.Chart.Axes.Bottom.MinorTicks.Visible = false; 
     this.Chart.Axes.Bottom.MinorGrid.Visible = false; 
     this.Chart.Axes.Bottom.Grid.Visible = false; 
     this.Chart.Axes.Bottom.Labels.Angle = 90; 
     this.Chart.Axes.Bottom.Labels.Font.Color = textColor; 

     // series 
     Steema.TeeChart.Styles.Bar testSeries = new Steema.TeeChart.Styles.Bar() { VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left }; 
     testSeries.Marks.Visible = false; 
     testSeries.Color = UIColor.Blue.CGColor; 
     testSeries.XValues.DateTime = true; 
     testSeries.BarWidthPercent = 100 * (int) (float)UIKit.UIScreen.MainScreen.Scale; 
     testSeries.SideMargins = true; 
     this.Chart.Series.Add(testSeries); 
    } 

Результат таков:

chart

Как вы можете видеть, метки оси нижней отрезаны. Я использую последнюю версию TeeChart (4.15.1.19).

Любая помощь будет оценена по достоинству.

ответ

1

Да, вы правы, это ошибка, которая уже исправлена. Он будет включен в следующий релиз обслуживания, который будет доступен в магазине Xamarin, а также на нашем веб-сайте на странице загрузки клиентов.

Спасибо!

Josep

+0

Спасибо. У вас есть предполагаемая дата выпуска? Нам нужно это исправление как можно скорее ... – vbm

+0

@vbm, мы ожидаем, что он будет опубликован на этой неделе. –

+0

@ Narcís Calvet Я загрузил последнюю версию, но я все еще вижу ту же проблему ... – vbm

Смежные вопросы