Ticket T111173
Visible to All Users

How to Bind data to pie chart

created 11 years ago

Hello Support,

I have a ViewModel with 3 properties that I am trying to bind to a pie chart.  I have been digging through the documentation and examples and I cannot see how to build a trivial pie chart with 3 changing values.  Your help will be greatly appreciated.  Can you please point to or provide an example that uses data binding?

Regards,
Bryce

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Bryce,

While there is no capability to bind view model properties directly to SeriesPoint objects, you can define an object to store your data items and link it to the Pie Series as described in the How to: Bind a Chart documentation article. Should you need further clarification, feel free to ask. I will be happy to help you.

    Comments (2)

      Hello Alex,
      I guess it was not surprise that I could not figure out how to bind the individual values.  I built a collection and all is well.  The collection feel's unnecessary (wasteful) for this application, but I have it working.
      Thank you,
      Bryce

      DevExpress Support Team 11 years ago

        Hi Bryce,

        Please feel free to contact us if you have any questions. We will do our best to help you.

        P.S. Once your question has been resolved to your satisfaction, mark our answer as a Solution. Your question status will immediately become Closed (Support Center FAQ).

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.