Hello!
I am sorry for a delay with response.
I use the RadControls v.2011.1.11.427.
Let's look at the following simple code:
using
System.Windows.Forms;
using
Telerik.Charting;
using
Telerik.WinControls.UI;
namespace
ChartTest
{
public
partial
class
Form1 : Form
{
public
Form1()
{
InitializeComponent();
radChart1.Series.Clear();
ChartSeries s1 =
new
ChartSeries(
"Bars"
, ChartSeriesType.Bar);
s1.Appearance.ShowLabels =
false
;
radChart1.Series.Add(s1);
ChartSeries s2 =
new
ChartSeries(
"Line"
, ChartSeriesType.Line);
s2.Appearance.PointMark.Visible =
true
;
s2.Appearance.ShowLabels =
false
;
radChart1.Series.Add(s2);
double
[] values =
new
double
[] { 6, 8, 10, 8, 12 };
foreach
(
double
v
in
values)
{
ChartSeriesItem item1 =
new
ChartSeriesItem(v);
item1.ActiveRegion.Tooltip =
"Bars: "
+ item1.YValue.ToString();
s1.Items.Add(item1);
ChartSeriesItem item2 =
new
ChartSeriesItem(v / 2);
item2.ActiveRegion.Tooltip =
"Line: "
+ item2.YValue.ToString();
s2.Items.Add(item2);
}
radChart1.Refresh();
}
}
}
The Bars series is added before the Line one. This allows to show the line in front of bars. But the tooltip of the Bars series override the tooltip of the Line one. See attached img1.jpg.
If I modify the code and add the Line series before the Bars one, the line is drawn behind the bars but the tooltip of the Line series is presented.
See attached img2.jpg.
It seems that the lookup order of the Active Regions should be reversed.
Thank you.