How to force series color ?

7 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
    2901 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. scott
    scott avatar
    67 posts
    Member since:
    Jul 2010

    Posted 28 Mar 2013 Link to this post

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

    Posted 10 May 2013 Link to this post

    and in the Pie Series?
  5. Stefan
    Admin
    Stefan avatar
    2901 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?
  6. boddupally
    boddupally avatar
    2 posts
    Member since:
    Oct 2014

    Posted 31 Mar Link to this post

    Hi  i have to change the default colors of DoughnutSeries of telerik can any one give me the color code in c# for winrt development
  7. Hristo
    Admin
    Hristo avatar
    889 posts

    Posted 03 Apr Link to this post

    Hi,

    Thank you for writing.

    The approach my colleague suggested in the previous post is also valid for the DonutSeries. Please note that this thread is discussing Telerik UI for WinForms. In case you are using a different product please ask your question in the relevant forums.

    Please let me know if you have other questions.

    Regards,
    Hristo
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top