Profile Picture

Displaying Tooltip on hover over marker

Posted By Simon Brun 8 Years Ago
Author
Message
Simon Brun
Question Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 1, Visits: 9
Is it possible to somehow display a tolltip when hovering over a marker of a 2D line graph?
I managed to display a tooltip when just hovering any part of the line but I'd like to have it show specifically when hovering a marker.

An answer would be greatly appreciated.

Nevron Support
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,018
Hi Simon,
You'll need to create a second point series that has per point tooltips and disable the markers of the line if you want to achieve this effect:

            NChart chart = nChartControl1.Charts[0];

            NLineSeries line = new NLineSeries();
            line.DataLabelStyle.Visible = false;
            line.MarkerStyle.Visible = false;

            for (int i = 0; i < 3; i++)
            {
                line.Values.Add(i);
            }

            NPointSeries point = new NPointSeries();

            for (int i = 0; i < line.Values.Count; i++)
            {
                point.Values.Add(line.Values[i]);
                point.InteractivityStyles.Add(i, i.ToString());
            }

            chart.Series.Add(point);
            chart.Series.Add(line);

            nChartControl1.Controller.Tools.Add(new NTooltipTool());

Hope this helps - let us know if you meet any problems.


Best Regards,
Nevron Support Team



Manal Goyal
Posted 6 Years Ago
View Quick Profile
Forum Member

Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 29, Visits: 405
Is this still applicable for latest version of nevron chart?


Nevron Support
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,018
Hi Manal,

Yes this is still the case.

Best Regards,
Nevron Support Team



Manal Goyal
Posted 5 Years Ago
View Quick Profile
Forum Member

Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)Forum Member (44 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 29, Visits: 405
Hi team,
While the solution that you guys provided in this thread may work for me, I would like to have exact functionality what the original poster has already achieved. That is to show tooltip when hovering over any part of the line series. How would I achieve that?

Regrads
Manal


Dhanashree Gholap
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 0, Visits: 38
Hi team,

I am using the tooltip tool same as above code explanation. But I am facing problem to change the color of tooltip text.
How we can change the tooltip text color?



Similar Topics


Reading This Topic