Free cookie consent management tool by TermsFeed

Chart Custom Color Scheme Component

On This Page
SAIL Design System guidance available for Charts

Every chart should tell a story. What does yours say? Learn how to build rich reporting dashboards that provide users with visualizations of their data.

Function

a!colorSchemeCustom( Colors )

A custom list of colors to apply to any chart.

See also: Chart Color Schemes

Parameters

Name Keyword Types Description

Colors

Colors

Text

List of colors to use in the custom color scheme. Valid values: any valid hex colors or hex color including transparency. Maximum colors allowed: 12. To add transparency to the hex color, add two additional digits between 00 (more transparent) and FF (less transparent).

Usage considerations

Series colors

  • If there are more series than colors provided, the colors enumerate through the list again from the beginning.
  • Users can still configure the colors of individual chart series while using a custom color scheme. Any series configurations will take precedence over automatically assigned color scheme colors.

Examples

To experiment with examples, copy and paste the expression into an interface object.

Use the interactive editor below to test out the example code.

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 )

Feature compatibility

The table below lists this component's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Interfaces Compatible
Sync-Time Custom Record Fields Incompatible
Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Incompatible

Cannot be used to configure a process report.

Process Events Incompatible

Cannot be used to configure a process event node, such as a start event or timer event.

Process Autoscaling Incompatible

Cannot be used in autoscaled processes.

Event Consumer Filter Conditions Compatible

Can be used in filter conditions.

Event Consumer Event Handlers Compatible

Can be used in event handler expressions.

The following recipes include usage of the Chart Custom Color Scheme Component.

  • KPI Patterns (Formatting):

    The Key Performance Indicator (KPI) patterns provide a common style and format for displaying important performance measures.

Feedback