This is a migrated thread and some comments may be shown as answers.

Help needed in rad chart

2 Answers 53 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Akki
Top achievements
Rank 1
Akki asked on 19 Jun 2012, 11:27 AM
Hi all,

I have two issues in rad chart.

1. How to inclined the x-axis values i.e. rotate the x-axis series in 45 or 270 degree to clear view the x-axis in rad chart.
2. How to remove or giving null value to the values which is zero in chart area.



Thanks in Advance.
Akki

2 Answers, 1 is accepted

Sort by
0
Accepted
Peshito
Telerik team
answered on 20 Jun 2012, 08:13 AM
Hi Akki,

You can control rotation of the axis labels using the LabelAppearance.RotationAngle property of your axis like this:
RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;
Regarding your other question, in order to show dates to an axis, values should be converted to OleAutomation types. It can be accomplished by using the DateTime.ToOADate() method.

As for removing zeroes from your series items, attach to the chart's  ItemDataBound event like this:
void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
    {
        if (e.SeriesItem.YValue == 0)
        {
            e.SeriesItem.Label.TextBlock.Text = " ";
        }
    }
I have also attached  a sample project that you could refer to for more information.

Kind regards,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Akki
Top achievements
Rank 1
answered on 20 Jun 2012, 12:28 PM
Thanks Peshito,

Both the fix solved my issues. Thanks once again.

Cheers,
Akki
Tags
Chart (Obsolete)
Asked by
Akki
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Akki
Top achievements
Rank 1
Share this question
or