Y-Axis Format

2 posts, 0 answers
  1. Baskar
    Baskar avatar
    9 posts
    Member since:
    Feb 2009

    Posted 30 Sep 2011 Link to this post

    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
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 03 Oct 2011 Link to this post

    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 >>
Back to Top