How to force series color ?

5 posts, 0 answers
  1. scott
    scott avatar
    67 posts
    Member since:
    Jul 2010

    Posted 25 Mar 2013 Link to this post

    Got a chart and elsewhere user gets to pick a color.  How can I force a particular series to render in the user specified color?

    Thanks -
    Scott

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Mar 2013 Link to this post

    Hello Scott,

    You can set the BackColor of the series to change their color, for example in BarSeries. For LineSeries, you should use the BorderColor property.

    I hope this helps.
     

    Greetings,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. scott
    scott avatar
    67 posts
    Member since:
    Jul 2010

    Posted 28 Mar 2013 Link to this post

    It sure does... Thanks Stefan...
  5. Cristiano
    Cristiano avatar
    6 posts
    Member since:
    Feb 2011

    Posted 10 May 2013 Link to this post

    and in the Pie Series?
  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 15 May 2013 Link to this post

    Hello Cristiano,

    Here is how you can do that: 
    radChartView1.Series[0].Children[0].BackColor = Color.Red;
    radChartView1.Series[0].Children[1].BackColor = Color.Green;
    radChartView1.Series[0].Children[2].BackColor = Color.Blue;

    Alternatively, you can create a custom palette, as described here: http://www.telerik.com/help/winforms/chartview-customization-palettes.html.

    I hope that you find this information useful.

    Kind regards,
    Stefan
    the Telerik team
    RadChart for WinForms is obsolete. Now what?
Back to Top
UI for WinForms is Visual Studio 2017 Ready