Page 1 of 1

Histogram Issues

Posted: Thu Aug 07, 2008 9:31 am
by 13049497
Hello,

i have found a few Issues (or Features?) in case of the histogram series style. If the Chart is 3D (Aspect.View3D) the histogram is already drawn in 2D. Also, the histogram doesnt really work in combination with marks. For example, i have written a little example to show the main differences between a histogram and bar series with the same configurations:

Code: Select all

Steema.TeeChart.TChart chart = new Steema.TeeChart.TChart();
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);
chart.Aspect.vi
Steema.TeeChart.Styles.Bar bars = new Steema.TeeChart.Styles.Bar();
Steema.TeeChart.Styles.Histogram histo = new Steema.TeeChart.Styles.Histogram();

bars.Add(2);
bars.Add(5);
bars.Add(3);
bars.Add(7);

histo.Add(4);
histo.Add(2);
histo.Add(5);
histo.Add(3);

bars.Marks.Visible = true;
bars.Marks.ArrowLength = 10; //distance to Point

histo.Marks.Visible = true;
histo.Marks.ArrowLength = 10; //distance to Point

chart.Series.Add(bars);
chart.Series.Add(histo);
Is this behaviour provided? Is there any other Property, that i have not seen?

Thanks in advance!

Re: Histogram Issues

Posted: Thu Aug 07, 2008 2:04 pm
by Chris
Hello,
AIS wrote:If the Chart is 3D (Aspect.View3D) the histogram is already drawn in 2D.
This is by design. If you're looking for a 3D effect then probably best to use an Area series with Stairs=true;
AIS wrote: Also, the histogram doesnt really work in combination with marks.
Marks do appear, but there is a problem with the Marks.ArrowLength for the histogram series. I've added this defect with number TF02013316 to our bug-tracking software.