This is a migrated thread and some comments may be shown as answers.

Grouping programatic data

1 Answer 37 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Mathew
Top achievements
Rank 1
Mathew asked on 27 Dec 2013, 12:09 PM
Hi,

I've just started using the RadHtmlChart and have been getting on quite well with it so far, however I want to create a graph that I can't see any documentation or examples of, and am wondering if it's possible.

I have data in the following format:

Team - Matchday - Position
London - 1 - 1
London - 2 - 1
London - 3 - 2
London - 4 - 1
Birmingham - 1 - 2
Birmingham - 2 - 2
Birmingham - 3 - 1
Birmingham - 4 - 3
Liverpool - 1 - 3
Liverpool - 2 - 4
Liverpool - 3 - 3
Liverpool - 3 - 2

etc. etc.

I want to display a line series for each of these teams, showing their position on each matchday.  Is there any grouping fields properties that I can set in order to do this?  I've been able to get a line graph to show the progression for one of these teams, and for all of them together (which isn't very useful!), but would like them to each have their own line.

This is just example data, it will come from a database, so I can't just hard-code it.

Thanks

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 01 Jan 2014, 12:40 PM
Hi Mathew,

You can find helpful information on how to data bind multiple ScatterLine series in the following online demo: http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/bindtodataset/defaultcs.aspx


Regards,
Stanimir
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Chart (HTML5)
Asked by
Mathew
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or