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 2265

Summary: Unable to locate Chart.Chart.Axes.Left.Title.Clicked(e.X, e.Y) on mouse moves over Y axis title string- need to show tooltip on Y axis title
Product: .NET TeeChart Reporter: Rachana <rachna.81>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris
Priority: High    
Version: TeeChart for .Net 4.1.2016.05125   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description Rachana 2019-11-12 22:21:48 EST
I have to show tooltip on YAxis title on mouse move over title string.
I supposed to get it done on Mouse Move with MouseEventArgs locating title by Chart.Chart.Axes.Left.Title.Clicked(e.X, e.Y) 
It works well to show tooltip on X axis title [e.g. Chart.Chart.Axes.Bottom.Title.Clicked(e.X, e.Y)] even works on Chart header [Chart.Chart.Header.Clicked(e.X, e.Y)]

Chart.Chart.Axes.Left.Title.Clicked(e.X, e.Y) only not working to locate chart y axis title. Anyone has got such issue resolved then please share.

private void OnChartMouseMove(object sender, MouseEventArgs e)
{
    if (Chart.Chart.Axes.Left.Title.Clicked(e.X, e.Y))
    {
        if (stateModified)
            ChangeMouseCursor();
        ShowYAxesTitleTooltip(e);
    }
}
Note: I am using TeeChart version 4.1.2016.5122
Comment 1 Rachana 2019-11-12 22:25:11 EST
It is the main UI page. I am struggling to show tooltip on YAxes Title.
It works on XAxis but it will look like a bug if I partially fix it on UI.
Comment 2 christopher ireland 2020-01-08 03:53:16 EST
There's a workaround to this problem which is to set the Title's Transparency to false, e.g.

        TChart _tChart;
        public Form1()
        {
            InitializeComponent();

            _tChart = new TChart();
            _tChart.Dock = DockStyle.Fill;

            _tChart.Series.Add(typeof(Bar)).FillSampleValues();

            _tChart.Axes.Left.Title.Transparent = false;
            _tChart.Axes.Left.Title.Pen.Visible = false;
            _tChart.Axes.Left.Title.Brush.Color = _tChart.Panel.Color;
            _tChart.Axes.Left.Title.Text = "Y Axis Title";

            _tChart.MouseDown += _tChart_MouseDown;

            splitContainer1.Panel2.Controls.Add(_tChart);
        }

        private void _tChart_MouseDown(object sender, MouseEventArgs e)
        {
           if(_tChart.Axes.Left.Title.Clicked(e.Location))
           {
                MessageBox.Show("Clicked!");
           }
        }

We will confirm the fix to this issue soon.
Comment 3 christopher ireland 2020-01-08 09:50:22 EST
We have now fixed this issue, and this fix will become available in the next public release on NuGet, due out shortly.