Code: Select all
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 NoThicknessInSingleDataPointBarChart
{
public partial class Form1 : Form
{
const int NUMBER_OF_POINTS = 1;
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Aspect.View3D = true;
for (int i = 0; i < 4; i++)
{
Steema.TeeChart.Styles.Bar TheSeries = new Steema.TeeChart.Styles.Bar();
TheSeries.MultiBar = Steema.TeeChart.Styles.MultiBars.None;
TheSeries.Title = "Series-" + i.ToString();
TheSeries.Marks.Visible = false;
tChart1.Series.Add(TheSeries);
for (int j = 0; j < NUMBER_OF_POINTS; j += 1)
{
TheSeries.Add(j + 1, "Label-" + j.ToString());
}
}
}
}
}
The "Steema TeeChart for .NET 2016 4.1.2016.05120" version of the library does not have this problem.