Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Chart > Need example for data-binding to a chart with multiple series

Not answered Need example for data-binding to a chart with multiple series

Feed from this thread
  • Eljay avatar

    Posted on Jan 31, 2012 (permalink)

    The guide below shows an example for one series (in the example, one list of Products):
    http://www.telerik.com/help/winforms/chart-building-radcharts-data-binding-radchart-to-a-generic-list-of-objects.html

    How would I data-bind multiple series to a chart (in the example, more than one list of Products)?

    Reply

  • Petar Marchev Petar Marchev admin's avatar

    Posted on Feb 3, 2012 (permalink)

    Hello,

    I have attached a file containing some code that demonstrates how to add several series to the chart's series collection and bind them to different properties of the underlying object. 

    All the best,
    Petar Marchev
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

    Attached files

    Reply

  • Eljay avatar

    Posted on Feb 3, 2012 (permalink)

    Thanks for the example Petar, but this is not what I was looking for.

    After more searching, I'm looking for something like this but in WinForms.
    http://telerik.com/help/wpf/radchart-populating-with-data-series-mapping-items-source.html 

    Reply

  • Petar Marchev Petar Marchev admin's avatar

    Posted on Feb 8, 2012 (permalink)

    Hi,

    The link you have provided refers to our wpf chart. This is a newer control and the win forms chart does not have an equivalent to it for all features.

    If I understood you correctly you want to set a different source to each series and this is not possible with the win forms chart. You can either use the approach I previously presented, or you can manually set the items for each series. That means that you'll have to give up any automatic bindings and will need to manually populate the Items of each series.

    radChart1.Series[0].Items.Add(new Telerik.Charting.ChartSeriesItem(...
    radChart1.Series[0].Items.Add(new Telerik.Charting.ChartSeriesItem(...
     
    Regards,
    Petar Marchev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Chart > Need example for data-binding to a chart with multiple series
Related resources for "Need example for data-binding to a chart with multiple series"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]