I am using Stacked Spline Chart (2D). Here I bind the chart by fetching value from database using WCF. Now I want to show the Date that are fetch from Database in X-axis. How do I do this and also when mouse over the tooltip will shown with X and Y value.
I tried so much but not getting any result.
My Database contains (PK_ID, Exam_Date, Result).
So I want to plot graph Exam_Date Vs Result.
This is very urgent, kindly reply me.
Below is my coding:
SeriesMapping sm1 = new SeriesMapping();
sm1.SeriesDefinition = new StackedSplineSeriesDefinition();
sm1.LegendLabel = "Exam Result";
sm1.CollectionIndex = 0;
ItemMapping im1 = new ItemMapping();
im1.DataPointMember = DataPointMember.YValue;
sm1.ItemMappings.Add(im1);
RadChart1.SeriesMappings.Add(sm1);
TestDBServiceClient objTestDB = new TestDBServiceClient();
objTestDB.GetTestCompleted += new EventHandler<GetTestCompletedEventArgs>(objTestDB_GetTestCompleted);
objTestDB.GetTestAsync();
void objTestDB_GetTestCompleted(object sender, ServiceReference1.GetTestCompletedEventArgs e)
{
this.RadChart1.ItemsSource = e.Result;
}