Change colors series Chart

Hi!

I would like to know, how can I change series color of the Chart.

I have a chart kind Horiz.Bar and have two series.
I prefer first serie blue color and second serie green color.

How make this?

Regards

JOrge

Comments

  • gpigpi
    edited 7:09PM
    Try
    Chart1.Series[0].SeriesColor := clBlue;
    Chart1.Series[1].SeriesColor := clGreen;
  • edited 7:09PM
    Hi!

    I understood your answer, when I have two serie. It??s Ok!

    Per example:

    Chart1

    Year U$
    ________________________
    2009 1000
    2010 2000

    In the system default color is first green and second color is red.

    How can i make this when I have one Serie with two data. Look attach.

    Thank you

    Jorge
  • gpigpi
    edited 7:09PM
    Try to use:
    Chart1.SeriesData[0].Source4 := 'clGreen;clRed';
  • edited November 2010
    Hi!

    I make a example about your answer, but the chart view only one color.
    Look the attach.



    Thank you

    JOrge
  • gpigpi
    edited 7:09PM
    See a test report template in attach
  • edited 7:09PM
    gpi wrote: »
    See a test report template in attach


    Hi!

    Yes, if I use Fixed data, that's ok.
    When I use Dataset not change colors.
    Look my attach.

    Regards

    JOrge
  • edited 7:09PM
    Hi My Friend

    It's very simple, In Chart Option Select Series And Set ColorEachPoint Property True.

Leave a Comment