Question about best practices regarding multiple series / charts

4 posts, 0 answers
  1. travis
    travis avatar
    8 posts
    Member since:
    Feb 2011

    Posted 12 Oct 2011 Link to this post

    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.
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 17 Oct 2011 Link to this post

    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.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. travis
    travis avatar
    8 posts
    Member since:
    Feb 2011

    Posted 18 Oct 2011 Link to this post

    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.
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 21 Oct 2011 Link to this post

    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.

Back to Top