Hi all,
can someone please assist, or direct me to a working example
I am using RADChart in an ASP.NET page, as a horizontal Gannt chart
along the bottom axis i would like lables that appear as follows
APR MAY
09 09
unfortunately - Labels Still appear as APR 09 May 09 .....
Any ideas - suggestions gratefully accepted
can someone please assist, or direct me to a working example
I am using RADChart in an ASP.NET page, as a horizontal Gannt chart
along the bottom axis i would like lables that appear as follows
APR MAY
09 09
Telerik.Charting.ChartAxisItem cai = new Telerik.Charting.ChartAxisItem(); |
// add 15 days so that label appears in middle of month |
cai.Value = Convert.ToDecimal(thisDate.AddDays(15).ToOADate()); |
// create text for label |
cai.TextBlock.Text = thisDate.ToString("MMM yy"); |
// attempt to force linefeed in label - also tried char(10) |
cai.TextBlock.Text = cai.TextBlock.Text.Replace(' ', Convert.ToChar(13)); |
// set autowrap on - in desperation !! |
cai.TextBlock.Appearance.AutoTextWrap = Telerik.Charting.Styles.AutoTextWrap.True; |
// set label alignment to center |
cai.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Center; |
// add label to Axis objects |
radChart.PlotArea.YAxis.Items.Add(cai); |
unfortunately - Labels Still appear as APR 09 May 09 .....
Any ideas - suggestions gratefully accepted