【问题标题】:Adding a ScrollPager Tool to a TeeChart shrinks the whole chart向 TeeChart 添加 ScrollPager 工具会缩小整个图表
【发布时间】:2016-10-27 13:53:42
【问题描述】:

我正在尝试向示例代码中的 tchart 添加一个滚动寻呼机(但对于 WPF),我得到了一个非常奇怪的结果

在我添加滚动寻呼机之前。

之后

Chart.Series.Clear();
Chart.Header.Text = "Plot";
Chart.Axes.Automatic = true;
Chart.Legend.TopLeftPos = 0;
Chart.Axes.Bottom.Labels.DateTimeFormat = "HH:mm:ss";
Chart.Axes.Bottom.Labels.LabelsAsLocalTime = true;
Chart.Legend.LegendStyle = Steema.TeeChart.WPF.LegendStyles.Series;

FastLine series = new FastLine();
Chart.Series.Add(series);
series.FillSampleValues(1000);
Chart.Tools.Add(_scrollPager = new ScrollPager());
Chart.Tools.Add(_nearestPoint = new NearestPoint());
Chart.Tools.Add(_annotate = new Annotation());

_scrollPager.Series = series;

_nearestPoint.Series = series;
_nearestPoint.Brush.Color = _scrollPager.PointerHighlightColor;
_nearestPoint.DrawLine = false;
_nearestPoint.Size = 6;
_nearestPoint.Direction = NearestPointDirection.Horizontal;

_annotate.Position = AnnotationPositions.RightTop;
_annotate.Text = "YValue:";
_annotate.Shape.Shadow.Visible = false;
_annotate.Shape.Font.Color = Chart.Header.Font.Color;
_annotate.Shape.Color = _scrollPager.PointerHighlightColor;
_annotate.Shape.Pen.Visible = false;
_annotate.TextAlign = TextAlignment.Center;

任何想法都将不胜感激!

【问题讨论】:

标签: c# wpf teechart


【解决方案1】:

我们可以重现该问题,因此我们将其添加到公共跟踪器:
http://bugs.teechart.net/show_bug.cgi?id=1672

请注意,我们正在进行修复。

【讨论】:

  • 对不起,我不知道票是从哪里来的
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-06-21
  • 1970-01-01
  • 1970-01-01
  • 2013-10-03
  • 1970-01-01
相关资源
最近更新 更多