Can you please provide me the code if possible.
Dependeing on some of your other requirements, it may or may not be better to use a composite chart. Here's a small example that can get you started with a simple line chart:ChartTextAppearance chartText = new ChartTextAppearance();chartText.Visible = true;chartText.Row = -2;chartText.Column = -2;chartText.ItemFormatString = "<DATA_VALUE:C>";chartText.VerticalAlign = StringAlignment.Far;ultraChart1.ChartType = ChartType.LineChart;ultraChart1.Data.DataSource = new[,] { { 1, 2, 2, 1, 2 }, { 5, 7, 5, 7, 5 } };ultraChart1.LineChart.ChartText.Add(chartText);ultraChart1.Axis.X.Visible = false;ultraChart1.Axis.X.Margin.Near.Value = 5;ultraChart1.Axis.X.Margin.Far.Value = 5;ultraChart1.TitleLeft.Text = "Price($)";ultraChart1.TitleLeft.Orientation = TextOrientation.VerticalLeftFacing;ultraChart1.TitleLeft.HorizontalAlign = StringAlignment.Center;ultraChart1.TitleLeft.Visible = true;ultraChart1.Axis.Y.Extent = 30;ultraChart1.Legend.Visible = true;ultraChart1.Legend.Location = LegendLocation.Bottom;
Also, feel free to look at this blog post for valuable chart-related information:http://community.infragistics.com/blogs/sung_kim/archive/2008/09/05/chart-university-chart-101-and-some-201-301-401-stuff.aspx
Hi,
It is worked fine but the thing is that, In chart that i attached has the data labels for first Red Line is shown below and data label for Blue Line is above. I need to show my data label in that manner.
chartText.VerticalAlign = StringAlignment.Far;
The above line specify the gap between data point and label. But no properties are avail to mention the data label position (below the line).
Is it possible to show the data point label in the manner that i mentioned? Please advise.