Could not set custom color for Chart ASeries Area (JAVA)

Hello,

When I try to set color for ASeries Area with the following code

series.getArea().setForegroundColor(Color.RED);

everything is fine - the foreground color of series is RED (!).

But I need my own color, e.g.

private

final static Color BRIGHT_GREEN = new Color(0,255,64);

When I set this color,

series.getArea().setForegroundColor(BRIGHT_GREEN);

I've got black foreground in result excel file.

How can I fix this?

Thanks in advance

Tyrex

The same issue with Line colors :frowning:

The problem is solved.

The color should be get from Workbook Palette object.