Histogram MarksTip Error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Newbie
Newbie
Posts: 2
Joined: Fri Sep 13, 2019 12:00 am

Histogram MarksTip Error

Post by » Wed Dec 11, 2019 1:36 pm

Hi

Take a look at the picture please. The markstip that is showed in the blue bar is showing the value of the next bar, not his own value. Instead of showing 60 is showing 405.

Is it a bug or we are doing something wrong?

Thanks!
Attachments
histogramMarksTip.jpg
histogramMarksTip.jpg (58.42 KiB) Viewed 8616 times

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

Re: Histogram MarksTip Error

Post by Christopher » Thu Dec 12, 2019 9:48 am

Hello,

I'm having difficulty reproducing this one here, I'm afraid. Using the latest TeeChart version from NuGet and the following code:

Code: Select all

    public Form1()
    {
      InitializeComponent();
      InitializeChart();
    }

    private void InitializeChart()
    {
      var histo = new Histogram(tChart1.Chart);
      histo.FillSampleValues(10);

      histo.YValues[3] = 0;
      histo.Marks.Visible = true;

      var marks = new MarksTip(tChart1.Chart);
      marks.Series = histo;
      marks.Style = MarksStyles.XY;
    }
I obtain the following result:
Image

Could you please help me by modifying the code above so I can reproduce your issue at this end?
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