ScrollPager with Bar chart has multiple entries and overlap.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

ScrollPager with Bar chart has multiple entries and overlap.

Post by biqpaulson » Thu Mar 02, 2017 9:11 pm

Hello,

I am using a ScrollPager and for some reason for Bar and HorizBar the tool is not working correctly.
1) the bars in the top chart overlap.
2) the bars in the bottom are doubled.

The code I used is:

Code: Select all

using Steema.TeeChart;
using Steema.TeeChart.Styles;
using Steema.TeeChart.Tools;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ScrollPagerTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            InitializeChart();
            AddPagerTool();
        }

        ScrollPager tool;
        Steema.TeeChart.Styles.Bar series;

        private void InitializeChart()
        {
            tChart1.Header.Text = "Scroll Pager Tool";
            tChart1.Series.Add(series = new Steema.TeeChart.Styles.Bar());
            series.FillSampleValues(8);
            series.Legend.Visible = false;
        }

        private void AddPagerTool()
        {
            tChart1.Tools.Add(tool = new ScrollPager());
            tool.Series = series;

            tool.SubChartTChart.Panel.Pen.Visible = false;
            tool.SubChartTChart.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
            tool.SubChartTChart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
        }
    }
}
The picture showing this is:
overlap and doubled.PNG
overlap and doubled.PNG (24.53 KiB) Viewed 5980 times
Is there a way to fix this?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ScrollPager with Bar chart has multiple entries and overlap.

Post by Christopher » Fri Mar 03, 2017 10:06 am

biqpaulson wrote: Is there a way to fix this?
I have added this issue to our issue-tracker with id=1809 - as you will be able to read, this issue is not reproducible in the latest sources and renders like this:
TChart636241356941375498.png
TChart636241356941375498.png (13.13 KiB) Viewed 5971 times
The latest sources will soon be built and made public in the upcoming maintenance release.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply