I'm creating a line chart with multiple series created dynamically.
Here is the code.
For some reason the tooltips just aren't showing up. Is there anything that I'm missing?
Here is the code.
For Each mdItem As ModalityTrendWrapper In ModalityTrend
Dim newSeries As New Telerik.Charting.ChartSeries()
newSeries.Name = mdItem.Modality
newSeries.Type = ChartSeriesType.Line
For Each dateCount As ModalityTrendItem In mdItem.DateCounts
Dim chrItem As New ChartSeriesItem()
chrItem.YValue = dateCount.Count
chrItem.Name = dateCount.Modality
chrItem.Label.TextBlock.Text = dateCount.Count
chrItem.ActiveRegion.Tooltip =dateCount.Modality
newSeries.Items.Add(chrItem)
Next
RadChart1.Series.Add(newSeries)
Next
Dim MaxValue As Integer = Enumerable.Range(0, CInt(ModalityTrend.Count)).Select(Function(ex) ModalityTrend(ex).DateCounts.Max(Function(dc) dc.Count)).Max()
RadChart1.ClientSettings.XScale = DateList.Count / 7
RadChart1.PlotArea.XAxis.AddRange(1, DateList.Count, 1)
RadChart1.PlotArea.YAxis.MaxValue = MaxValue + 2
For i As Integer = 0 To DateList.Count - 1
RadChart1.PlotArea.XAxis(i).TextBlock.Text = DateList(i)
RadChart1.PlotArea.XAxis(i).Appearance.Border.Visible = True
Next
For some reason the tooltips just aren't showing up. Is there anything that I'm missing?