Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Values of X Axis

Not answered Values of X Axis

Feed from this thread
  • Iosu Buenetxea Intermediate avatar

    Posted on Nov 11, 2008 (permalink)

    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.

    Reply

  • Dwight Dwight admin's avatar

    Posted on Nov 12, 2008 (permalink)

    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.

    Reply

  • Q1 Webinar Week
  • Michael Stuart avatar

    Posted on Nov 12, 2008 (permalink)

    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?

    Reply

  • Andrew avatar

    Posted on Nov 13, 2008 (permalink)

    i also need to display custom X Axis labels. In my case dates and hours of the day.

    Reply

  • Ves Ves admin's avatar

    Posted on Nov 14, 2008 (permalink)

    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.

    Reply

  • Malky avatar

    Posted on Nov 14, 2008 (permalink)


    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....


    Reply

  • Ves Ves admin's avatar

    Posted on Nov 14, 2008 (permalink)

    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.

    Reply

  • g avatar

    Posted on Dec 26, 2008 (permalink)

    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.

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Dec 29, 2008 (permalink)

    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.

    Reply

  • Kurt avatar

    Posted on Jun 4, 2009 (permalink)

    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. 

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Jun 5, 2009 (permalink)

    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.

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Values of X Axis
Related resources for "Values of X Axis"

WPF Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]