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;
}
}
}