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

Question about best practices regarding multiple series / charts

3 Answers 39 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
travis
Top achievements
Rank 1
travis asked on 12 Oct 2011, 01:49 PM
In my application users may choose to render a series of "KPIs" , each on their own chart, representing a float yval over an oa_time.

Thus far I have accomplished this by programatically creating a chart for each "kpi" i want to show and then dynamically adding the control to the form with approrpriate properties..

I'm wondering if this is best practice when its time to render many chart series on their on grid?  Is there a method of using a single radchart control and adding a seperate x and seperate y axis (vertically?, in columns?) for each series or am I best to stick with rendering one control per series .

If there are examples of showing 10+ series each on their own seperate x axis / y axis on a single chart control , are there any samples?


thanks a lot.

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 17 Oct 2011, 02:05 PM
Hi Travis,

RadChart supports only a single PlotArea i.e. a set of X/Y axes with their gridlines, so it seems you have already found the best approach for your needs. Just for the sake of completeness, I'd like to mention, that you can add multiple series in the same chart, but that would require re-using the PlotArea, as shown in the images here. If you need this, just add as many ChartSeries as you need to the RadChart.Series collection.

Best regards,
Ves
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
travis
Top achievements
Rank 1
answered on 18 Oct 2011, 03:12 PM
The 1-50 charts are rendering quite nicely on a single form. I have the chart controls docked to a dynamically created tablelayout panel.

The only challenge has been to figure out when to perform certain events. For example, most of everything I want to do interms of formatting the chart is accomplished in the prerendering event of the chart.  However, I have a sub that is formatting the xaxis based on a "date grouping" . The sub simply formats the text properties of the axis and sets the displayed axis label text. 

In order for me to accomplish formatting of the axis I've found I need to do it before the prerendering.

I am still dealing with element spacing and formatting but the multiple controls per form is working nicely.
0
Ves
Telerik team
answered on 21 Oct 2011, 09:19 AM
Hi Travis,

I suppose you refer to PrePaint event. It is triggered after the chart layout is calculated, so it is mostly suitable for updating brushes and appearance. For adjusting text formatting, which might influence the chart layout and the layout itself, please wire the BeforeLayout event and execute your code there.

Best regards,
Ves
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
Chart (obsolete as of Q1 2013)
Asked by
travis
Top achievements
Rank 1
Answers by
Ves
Telerik team
travis
Top achievements
Rank 1
Share this question
or