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 - Histogram series brush overlaps bottom axis
Summary: Histogram series brush overlaps bottom axis
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/directline/vi...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-15 04:33 EDT by narcís calvet
Modified: 2015-07-29 05:37 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.