Profile Picture

InteractivityStyles problem

Posted By Umut Balkir 11 Years Ago
Author
Message
Umut Balkir
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1
Hi
We are testing .net chart for our project.

I need when mouse over on marker, show some informations in line chart
firstly i added mouse event
nChartControl1.Controller.Tools.Add(new NClientMouseEventTool());
after bind data
l1.XValues.AddRange((from v in pDateExamples where v.CountryID == 1 select v.date).ToArray());
l2.XValues.AddRange((from v in pDateExamples where v.CountryID == 2 select v.date).ToArray());
l3.XValues.AddRange((from v in pDateExamples where v.CountryID == 3 select v.date).ToArray());

l1.Values.AddRange((from v in pDateExamples where v.CountryID == 1 select v.count).ToArray());
l2.Values.AddRange((from v in pDateExamples where v.CountryID == 2 select v.count).ToArray());
l3.Values.AddRange((from v in pDateExamples where v.CountryID == 3 select v.count).ToArray());
after i added this code for when mouse over on marker that show information
for (int i = 0; i < l1.XValues.Count; i++)
{
l1.InteractivityStyles.Add(i, new NInteractivityStyle((from v in context.TestTable2 where v.ID == 1 select v.Ulke).FirstOrDefault().ToString()));
l2.InteractivityStyles.Add(i, new NInteractivityStyle((from v in context.TestTable2 where v.ID == 2 select v.Ulke).FirstOrDefault().ToString()));
l3.InteractivityStyles.Add(i, new NInteractivityStyle((from v in context.TestTable2 where v.ID == 3 select v.Ulke).FirstOrDefault().ToString()));
}

My problem is
when mouse over on the line (not marker) , i see information.
But i need mouse over on only marker for show data.
What can i do ?
i will send you image that problem be understandable

thanx







Attachments
testchart.png (138 views, 18.00 KB)
Nevron Support
Posted 11 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,009
Hi Umut,

To workaround the problem you need to create two series - one line series with disabled markers and no interactivity and a separate point series with interactivity, which in fact is used to show the markers. Hope this helps - let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team



Umut Balkir
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1
good trick, it works (:
thanks (:



Similar Topics


Reading This Topic