Page 1 of 1

Histogram MarksTip Error

Posted: Wed Dec 11, 2019 1:36 pm
by 15687050
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!

Re: Histogram MarksTip Error

Posted: Thu Dec 12, 2019 9:48 am
by Christopher
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?