Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
XamDataChart, Axes
posted

Hello.

XamDataChart have a good functionality and flexibility to satsify any purposes. But I have an problem with making a title to the axes. I saw a exampe (http://community.infragistics.com/forums/p/44418/269071.aspx#269071) with making titles for outside axes. 

Can you propose some solution to set title to the inside axes? In overview all axes must have next structure: line (as well known as axis)), labels, and title. So I can have variant with: OutsideLeft, InsideLeft, InsideRight, OutsideRight and also OutsideBottom(no matter). Have you any suggest from which point I can start?

Parents
No Data
Reply
  • 30692
    Suggested Answer
    Offline posted

    This isn't currently natively supported by the chart.

    One method you could use would be to color your axes and then include a key to the side of the chart that identified the axes by color.

    You may be able to modify this sample, to display a text annotation inside the chart, near the axis:

    http://forums.infragistics.com/forums/p/45157/246174.aspx#246174

    Another strategy might be to modify the data template that is used for the axis labels. And include the axis title in the label template. The trick with this solution is that you would only want the axis label to display once, under or over the middle label, or perhaps under or over the leftmost or rightmost label. You could likely accomplish this through some clever examination of the state of the visual tree from a control you place in the template. If this approach sounds interesting to you, let me know.

    The easiest solution with the current functionality of the chart, however, is to color code the internal axes.

    -Graham

Children
No Data