Page 1 of 1

Color of outliers in Boxplot

Posted: Wed Feb 15, 2012 11:15 am
by 16560701
Hi.
In the my Boxplot the outliers (shown as points) are colored by the chart itself and not by me. Does the coloring have a meaning?
Can I set the outliers color to colors of my choice? if yes, How?

outliers.jpg
outliers.jpg (14.29 KiB) Viewed 5931 times

BR
emwamin

Re: Color of outliers in Boxplot

Posted: Fri Feb 17, 2012 4:19 pm
by yeray
Hi emwamin,

The color of the outliers is taken from the series' color. By default, when a series is created, it takes the next color in the Opera Palette. That's why the outliers have these colors set, but you can change them as you want:

Code: Select all

uses TeeBoxPlot;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;

  for i:=0 to 3 do
    with Chart1.AddSeries(TBoxSeries) as TBoxSeries do
    begin
      FillSampleValues();
      Position:=i;
      Box.Color:=clGreen;
      Color:=clRed;
    end;
end;
Boxes.png
Boxes.png (9.59 KiB) Viewed 5814 times