Histogram drawing bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 1
Joined: Tue Apr 18, 2017 12:00 am

Histogram drawing bug

Post by neurosoft » Tue May 23, 2017 10:28 am

Hello!

Sometimes right border in histogram series are not drawing correctly. Please try attached sample: left and top borders of the bars are Ok, but right borders are absent. If you comment line "series.UseYOrigin = true" right border will appear. Or you can move histogram up via right mouse button - right border will also appear.

I am using TChart version 4.1.2017.03140.
Attachments
TChartTest.zip
(29.2 KiB) Downloaded 621 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Histogram drawing bug

Post by Christopher » Tue May 23, 2017 5:20 pm

Hello,

Thank you for reporting this one, I have added it to our issue tracker with id=1872 and a fix to it will be considered for inclusion into the next maintenance release. In the meantime the workaround is to ensure that the value for YOrigin (in the case that UseYOrigin = true) is greater than the Y/left axis, e.g.

Code: Select all

        public MainWindow()
        {
            InitializeComponent();

            MyTChart.Width = 400;
            MyTChart.Height = 300;
            MyTChart.Aspect.UseGuidelines = true;
            MyTChart.Axes.Left.AutomaticMinimum = false;
            int min = 1;

            MyTChart.Axes.Left.Minimum = min;

            series = new Histogram();
            series.UseYOrigin = false;
            series.YOrigin = min;
            series.Add(0);
            series.Add(10);
            series.Add(0);
            series.Add(10);
            series.Add(0);

            MyTChart.Series.Add(series);
        }

        public Histogram series;
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply