Steema Issues Database

Note: 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.



Bug 1239

Summary: Histogram series brush overlaps bottom axis
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: 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:

Description narcís calvet 2015-06-15 04:33:40 EDT
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;
Comment 1 narcís calvet 2015-06-16 03:36:16 EDT
This also happens with the left axis. It's solved using this:

      tChart1.Axes.Bottom.MinimumOffset:=10;
Comment 2 narcís calvet 2015-07-01 03:33:30 EDT
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.