Values of X Axis

11 posts, 0 answers
  1. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 11 Nov 2008 Link to this post

    Hi,
    I have create a RadChart based on a datatable that has 2 columns "XValue" and "YValue".

    Dim

     

    seriesMapping2 As New SeriesMapping

     

    seriesMapping2.SeriesDefinition =

    New BarSeriesDefinition

     

     

    Dim itemMapping2 As New ItemMapping

     

    itemMapping2.DataPointMember = DataPointMember.YValue

    itemMapping2.FieldName =

    "YValue"

     

    seriesMapping2.ItemMappings.Add(itemMapping2)

    RadChart1.SeriesMappings.Add(seriesMapping2)

     

    When i execute the chart, the X axis labels values are 1,2,3, .... and i would like to put here the values of "XValue" column on my datatable. How can i do it?


    Also, If I try to put string values to "YValue" column in mi datatable, the chart fails, that is, only numeric values can be put as source of a serie?.

    Thanks a lot.

  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 12 Nov 2008 Link to this post

    Hello Juan,

    Thanks for writing. Indeed, the column which is set to DataPointMember.YValue should be numeric. This column will provide the value for YValue property of the item, which is essentially its "value" (ex. the height of the bar or the hight at which the point of a line chart is placed). I hope this explains why this column should be numeric. On the other hand axis item labels cannot be customized for the moment and we plan to provide means to manipulate them in a future version of the control.

    All the best,
    Evtim
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    52 posts
    Member since:
    Dec 2005

    Posted 12 Nov 2008 Link to this post

    You may have just explained my next issue.  So that means we are stuck with our X-Axis only being able to show "1, 2, 3, 4, 5, ..." as its labels until a future update?  If so, that is quite disappointing, and seems like a big block for people to use it in a production system.  For example, in my application, I have lots of charts that all require the X-Axis to show the abbreviated month of the year.  Any chance we can get a hotfix as soon as that gets added to the chart component?

  5. Andrew
    Andrew avatar
    27 posts
    Member since:
    Nov 2008

    Posted 13 Nov 2008 Link to this post

    i also need to display custom X Axis labels. In my case dates and hours of the day.
  6. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 14 Nov 2008 Link to this post

    Guys,

    Thanks for the great feedback. I can see this feature appears to be a must in a lot of apps, so it will be implemented for the upcoming service pack release. Stay tuned let us know of any other features you would like to see implemented in RadChart.

    Sincerely,
    Ves
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Malky
    Malky avatar
    3 posts
    Member since:
    Nov 2008

    Posted 14 Nov 2008 Link to this post


    I'm planning to purchase RAD Control for WPF soon, do you have time frame when label feature will be available ? Other features is Radar chart is quite important to me....


  8. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 14 Nov 2008 Link to this post

    Hi Malky,

    The service pack release is expected within a month and the axis labels will be included. As for radar charts -- our Q1 plans are pretty much stable now and unfortunately radar charts are not included. Still, your feedback is appreciated and your vote will be taken into account in our future considerations.

    Best regards,
    Ves
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. g
    g avatar
    2 posts
    Member since:
    Dec 2008

    Posted 26 Dec 2008 Link to this post

    Myself I see setting the X Axis value is a must.
    and I cannot purchase the control without it.
    And to be honest, I am buying the chart control, because I want to purchase the grid control as well, so I thought I will buy the chart control from the same vendor, but without this, I will not buy it.
    The problem I have a release in the middle of January, and I cannot go without it.

  10. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 29 Dec 2008 Link to this post

    Hello g,

    The latest release of the chart control supports axis and series label formatting and customization. You can find more information here and you can find the XBAP demos here (the "Custom Axis Labels" example is placed under the Chart > Customization > Axes category).

    Hope this helps.


    Regards,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Kurt
    Kurt avatar
    26 posts
    Member since:
    Mar 2009

    Posted 04 Jun 2009 Link to this post

    Just an FYI:

    The blog post shows eactly what I'm looking to do (bind string values to the x-axis), but provides zero code examples.  Awesome.  Also, there is no Chart > Customization > Axes category. 
  12. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 05 Jun 2009 Link to this post

    Hi Kurt,

    We would suggest you to review these help articles here and here that describe the label customization options supported by RadChart. As for the missing example -- indeed it was removed in the latest versions of the demos but its features can be seen in the Chart / FlexibleAPI example.

    Hope this helps.


    Greetings,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WPF is Visual Studio 2017 Ready