. Here is a sample code snippet, demonstrating how to customize the standard
public
Form1()
{
InitializeComponent();
radChartView1.AreaType = ChartAreaType.Cartesian;
BarSeries barSeries1 =
new
BarSeries();
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(10,
"1"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(4,
"2"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(23,
"3"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(11,
"4"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(15,
"5"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(10,
"6"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(4,
"7"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(7,
"8"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(11,
"9"
));
barSeries1.DataPoints.Add(
new
CategoricalDataPoint(15,
"10"
));
radChartView1.Series.Add(barSeries1);
BarSeries barSeries2 =
new
BarSeries();
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(6,
"1"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(20,
"2"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(7,
"3"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(8,
"4"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(4,
"5"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(10,
"6"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(24,
"7"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(17,
"8"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(18,
"9"
));
barSeries2.DataPoints.Add(
new
CategoricalDataPoint(43,
"10"
));
radChartView1.Series.Add(barSeries2);
ChartTooltipController toolTipController =
new
ChartTooltipController();
toolTipController.DataPointTooltipTextNeeded += toolTipController_DataPointTooltipTextNeeded;
radChartView1.Controllers.Add(toolTipController);
}
private
void
toolTipController_DataPointTooltipTextNeeded(
object
sender, DataPointTooltipTextNeededEventArgs e)
{
e.Tooltip.BackColor = Color.Yellow;
e.Tooltip.ForeColor = Color.Red;
e.Tooltip.OwnerDraw =
true
;
e.Tooltip.Draw += ToolTip_Draw;
}
private
void
ToolTip_Draw(
object
sender, DrawToolTipEventArgs e)
{
ToolTip toolTip = sender
as
ToolTip;
e.Graphics.FillRectangle(
new
SolidBrush(toolTip.BackColor), e.Bounds);
e.DrawBorder();
e.DrawText(TextFormatFlags.Left );
}
I hope this information helps. Should you have further questions, I would be glad to help.