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

custom legend

2 Answers 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rachel
Top achievements
Rank 1
Rachel asked on 19 Aug 2010, 06:29 AM
i'm trying to do as the second example in here, but with no luck.

i have an x axis that is of type xcategory,
y1 that is of type yvalue,  
y2 that is of type yvalue and
group of type xcategory (that contains 2 categories)
the legend display the following: 
y1 
y1
y2
y2
i would like the legend to display the y axis with the appropriate xcategory:
y1 category 1
y1 category 2
y2 category 1
y2 category 2
is it possible???

2 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 24 Aug 2010, 09:50 AM
Hi Rachel,

I am not sure I completely understand the question. Does following the instructions from blog post not work?

Generally RadChart will generate a legend item made up of group keys used for grouping of the data as seen in the blog post. The pattern used to generate those strings cannot be currently modified. It will always generate the legend item text in the following manner: "<key> <key> ...."

Does this answer the question?

Kind 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
0
Rachel
Top achievements
Rank 1
answered on 24 Aug 2010, 11:21 AM
not quite what i meant...
but i came up with a solution - i ran through the RadChart.DefaultView.ChartArea.DataSeries
and managed to get the info i needed from the DataPoint (RadChart.DefaultView.ChartArea.DataSeries[i])
Tags
Chart
Asked by
Rachel
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Rachel
Top achievements
Rank 1
Share this question
or