Function: a!colorSchemeCustom()
A custom list of colors to apply to any chart.
See also: Chart Color Schemes, UX Charts Best Practices.
Name | Keyword | Types | Description |
---|---|---|---|
Colors |
|
Text |
List of colors to use in the custom color scheme. Valid values: any valid hex colors. Maximum colors allowed: 12. |
Copy and paste an example into EXPRESSION MODE:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
a!pieChartField(
label: "Opportunity Sources",
labelPosition: "ABOVE",
series: {
a!chartSeries(label: "Other", data: 10),
a!chartSeries(label: "Website", data: 20),
a!chartSeries(label: "Client Referrals", data: 30)
},
colorScheme: a!colorSchemeCustom(
colors: {"#05286B", "#379683", "#5CDB95"}
),
showDataLabels: true,
showAsPercentage: true
)
Displays the following: