Page 1 of 1

ScrollPager with Bar chart has multiple entries and overlap.

Posted: Thu Mar 02, 2017 9:11 pm
by 15048900
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 5949 times
Is there a way to fix this?

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

Posted: Fri Mar 03, 2017 10:06 am
by Christopher
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 5940 times
The latest sources will soon be built and made public in the upcoming maintenance release.