Vladmir:
Thank you for this Visual Studio project. Tool tips work OK in this project. Later I will try in a
Silverlight project I am developing and will report whether tooltips work there.
But now I have different questions about your example project. When I modify the code as shown below:
1. How can we get x-axis to display 0,1,2,3 ... as we have in the dataPoints in the code?
2. How can we get bars having positive values to start at y value zero and go upward?
3. How can we get bars having negative values to start at y value zero and go downward?
Steve
public Page()
{
InitializeComponent();
RadChart1.DefaultView.ChartArea.ItemToolTipOpening += new ItemToolTipEventHandler(ChartArea_ItemToolTipOpening);
DataSeries barSeries = new DataSeries();
barSeries.Definition = new BarSeriesDefinition();
barSeries.Definition.ShowItemToolTips = true;
DataPoint dataPoint;
for (int i = 0; i < 5; i++)
{
dataPoint = new DataPoint();
dataPoint.XValue = i;
dataPoint.YValue = i * 5;
barSeries.Add(dataPoint);
}
for (int i = 6; i < 11; i++)
{
dataPoint = new DataPoint();
dataPoint.XValue = i;
dataPoint.YValue = -i * 5;
barSeries.Add(dataPoint);
}
RadChart1.DefaultView.ChartArea.DataSeries.Add(barSeries);
}