![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Histogram series brush overlaps bottom axis | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | enhancement | CC: | chris, nagai |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/directline/viewtopic.php?f=6&t=1007&p=4850#p4850 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
This also happens with the left axis. It's solved using this:
tChart1.Axes.Bottom.MinimumOffset:=10;
Using this code:
private void InitializeChart()
{
Histogram series;
tChart1.Aspect.View3D = false;
tChart1.Series.Add(series = new
Steema.TeeChart.Styles.Histogram()).FillSampleValues();
tChart1.Axes.Bottom.AxisPen.Color = Color.Red;
tChart1.Axes.Bottom.AxisPen.Width = 0;
tChart1.Axes.Left.MinimumOffset = 1;
series.UseYOrigin = true;
series.YOrigin = 0;
tChart1.Axes.Left.SetMinMax(0, tChart1.Series[0].YValues.Maximum);
}
Histogram paints to the bottom position of the left axis by default - scroll the default Histogram up to see this. To get the expected behaviour, set the YOrigin to zero and shift the Offset by a pixel.
|
Histogram series brush overlaps the bottom axis. Making the brush transparent doesn't occur: tChart1.Aspect.View3D = false; tChart1.Series.Add(new Steema.TeeChart.Styles.Histogram()).FillSampleValues(); //tChart1[0].bBrush.Transparency = 100;