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

X-Axis Add String Value

1 Answer 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
MakeMedia
Top achievements
Rank 1
MakeMedia asked on 12 Mar 2010, 06:53 PM
Hi,

I have been trying to add string values to a Multiple Line Chart but with no luck at all.
The last approach was to use the TickPoints.Label which seems to make the most sense but the problem is that even after I have added the Item data to the chart the TickPoints[0] stopping me from editing the data.

            itemsSource.Add(data1);
            itemsSource.Add(data2);
            itemsSource.Add(data3);
            itemsSource.Add(data4);

            RadChart1.ItemsSource = itemsSource;

            string[] months = new string[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"};
            for (int i = 0; i < months.Length; i++)
            {
                RadChart1.DefaultView.ChartArea.AxisX.TickPoints[i].Label = months[i];
            }

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 14 Mar 2010, 11:03 AM
Hi Stephen,

It looks like you are trying to create a categorical chart. Does the link provided help with that?

Regards,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
MakeMedia
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or