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

Y-Axis Format

1 Answer 54 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Baskar
Top achievements
Rank 1
Baskar asked on 30 Sep 2011, 01:45 PM
Dear Expert

i need to display the Y-Axis Value in the String Format,

for example my collection has DateTime and int

1 , 26-05-2011
2, 27-05-2011
3, 28-05-2011
4, 29-05-2011

Now in the above value i will set the item mapping as
 <telerik:SeriesMapping.ItemMappings>
                                    <telerik:ItemMapping FieldName="Date"  DataPointMember="XValue" />
                                    <telerik:ItemMapping FieldName="Value"    DataPointMember="YValue" />
                                </telerik:SeriesMapping.ItemMappings>

Now in the chart i need to display the Y-Axis , in the given format

1=> North
2=>West
3=>East
4=>South

And i have attach the sample Png.

Thanks in Advance

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 03 Oct 2011, 02:55 PM
Hi Baskar,

Currently there is no way to bind the YAxis to a custom string value as it is made to be used as numerical axis. However you can specify custom YAxis items labels by following this help article. The example shown is for XAxis but the approach is absolutely the same for YAxis.

Best wishes,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Baskar
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or