TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
t-chizzle
- Newbie
- Posts: 13
- Joined: Fri Feb 19, 2016 12:00 am
Post
by t-chizzle » Thu Oct 27, 2016 11:16 am
I am trying to add a scroll pager to a tchart like in the example code (but for WPF) and I get a very strange result
Before I add a scroll pager.
- before.PNG (58.68 KiB) Viewed 14388 times
After
- result.PNG (12.91 KiB) Viewed 14380 times
Code: Select all
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(_nearestPoint = new NearestPoint());
Chart.Tools.Add(_annotate = new Annotation());
_scrollPager = new ScrollPager();
_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;
Any ideas would be gratefully received!
Tom
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Post
by Christopher » Wed Nov 02, 2016 11:50 am
Hello,
many apologies for the tardiness of this reply. I have added this issue to our issue-tracker with ticket number
id=1672. I will have a look at this in the near future to see if I can suggest a workaround for you.
-
t-chizzle
- Newbie
- Posts: 13
- Joined: Fri Feb 19, 2016 12:00 am
Post
by t-chizzle » Mon Nov 14, 2016 9:53 am
Thanks. Any update on this?
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Post
by Christopher » Mon Nov 14, 2016 11:56 am
t-chizzle wrote:Thanks. Any update on this?
Yes. I've fixed the problem, but was waiting for a colleague to complete a related issue on another platform before responding. Unfortunately the fix was made within a private method, meaning that the only workaround is to completely replace the ScrollPager tool with a new class at runtime. If you're happy with that, do please indicate your email address and license number and I can send the code to you.