E-CHART: Chart Type %ChartType_2DHorizPercentBar Colours Are Wrong (Doc ID 2267478.1)

Last updated on SEPTEMBER 18, 2017

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Symptoms

Problem statement
---------------------------------
Chart colors do NOT display as configured with Chart method SetColorArray.

Steps
--------------
In order to replicate the issue, follow the below steps:

1. Create a chart of type %ChartType_2DHorizPercentBar with 4 series.

2. Set chart colours with code:
Local array of number &NumArray = CreateArray(1, 4, 9, 10);
&Chart.SetColorArray(&NumArray);
&Chart.HasLegend = False;

3. Also create a chart for the legend:
Local array of number &NumArray = CreateArray(1, 4, 9, 10);
&LegChart.SetColorArray(&NumArray);
&LegChart.HasLegend = False;
&LegChart.LegendPosition = %ChartLegend_Separate;

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms