New to Charting, Multiple Series

1 Answer 116 Views
Chart (HTML5)
Bernie
Top achievements
Rank 1
Iron
Iron
Bernie asked on 22 Aug 2022, 01:45 PM

I'm using RadHTMLChart for the first time. My application has six or eight data series to display. I'm feeding from a SQL database using linq.

Do I need to set up a separate series for each of these or can the RadHTMLChart control auto create series based on a field I give it?

If I have to manually create a series for each, does anyone have an example on how to do this in code behind? The number of series varies according to the data so I can't do this at design time.

Bernie

 

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 25 Aug 2022, 12:18 PM

Hi Bernie,

I have already responded to your formal support ticket on the same topic and I would suggest proceeding with the communication there only.

For transparency, I will share my answer here as well:

The Series in the Chart should be either declared or programmatically created. Unfortunately, series cannot be automatically created via the data binding procedure.

The following help article explains (and demonstrates) the different ways in which RadHtmlChart can be created ( declaratively, using data binding, or programmatically):

More samples showing programmatically created chart series in this help article:

and this live demo:

Kind regards,
Doncho
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tags
Chart (HTML5)
Asked by
Bernie
Top achievements
Rank 1
Iron
Iron
Answers by
Doncho
Telerik team
Share this question
or