Hi,
In my xamDataChart, I created a lineSeries, and data were bound to the lineSeries.
Requirement: When I put on my mouse over one markup and click it, then a popup window is shown. The popup window's content is the value which the markup indicates.
And if the popup window is in other Web project(the window's content is just the value which the markup indicates), not in the silverlight project, how can I popup this window?
Do I make it clear?
Could you please help me to achieve this requirement? Thanks in advance.
Hello Charlie,
Thank you for your question!
I have created a sample application (SLDataChart.zip) showing the functionality you need. It is attached to this message.
Please let me know if this works for you.
Best regards,
Anatoli Iliev
Hello Anatoli,
Thanks for your quick response. But where's the attached sample application, I can't see it.
Hi Anatoli,
Thanks for your sample application,it solved my first requirement .
I have another new requirement, when I put mouse over markup, the mouse curson change to hand, how to achieve this? Thanks in advance.
Hi Charlie,
Can you please try to add the following code in the XamDataChart's tag xaml definition:
SeriesMouseEnter="igDataChart_SeriesMouseEnter_1" SeriesMouseLeave="igDataChart_SeriesMouseLeave_1"
After that please add the following in the code-behind:
private void igDataChart_SeriesMouseEnter_1(object sender, ChartMouseEventArgs e)
{
this.igDataChart.Cursor = Cursors.Hand;
}
private void igDataChart_SeriesMouseLeave_1(object sender, ChartMouseEventArgs e)
this.igDataChart.Cursor = Cursors.Arrow;
Handling this events in the way that I show you should work for you.
Please let me know if this is solution for you.
Hi Anatoli,
Thanks for your solution, but I need the cursor be "hand" just when I put mouse over markup(the data point), not all series. According to your
solution, the all series wouble be "hand" when putting mouse over, that's not what I wanted. Could you please help achieve this, thanks~~
I have attached a sample application (SLDataChart.zip) showing the functionality you need.
The solution you provided indeed achieve my requirement. But if I have multiple lineSeries, I found that only the first lineSeries achieve the
requirement, other lineSeries still keep "arrow" when putting mouse over markup. Can please help investigate this? Thanks!
Misson Complete! Thank you very much indeed for your help. Love you...
I made some adjustment in the sample application. Please take a look at the attachment (SLDataChart.zip).
It should resolve all your issue.
Please let me know the result.
HI Anatoli,
Thanks for you idea. But if all series add: MarkerType="Circle", all series's markup would be "Circle", however,the legend of the series isn't all "Circle". Do I mark it clear? Thanks!
Please try to add the following xaml property for each series you add: MarkerType="Circle"
So your series should look something like this:
<ig:LineSeries MarkerType="Circle" Title="Test" ItemsSource="{Binding}" YAxis="{Binding ElementName=LineYAxis}" XAxis="{Binding ElementName=CategoryDateTimeXAxis}" ValueMemberPath="Value1" />
Please let me know if this resolves your issues.