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 9:49AM
    Try
    Chart1.Series[0].SeriesColor := clBlue;
    Chart1.Series[1].SeriesColor := clGreen;
  • edited 9:49AM
    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 9:49AM
    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 9:49AM
    See a test report template in attach
  • edited 9:49AM
    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 9:49AM
    Hi My Friend

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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.