# Appearance

The Angular Chart derives its colors from the active [Kendo UI theme](https://www.telerik.com/design-system/docs/themes/get-started/introduction/). You can customize the colors, dimensions, series patterns, and entrance animations through theme variables and component configuration.

## Setting the Dimensions

By default, the Angular Chart is 400px high and as wide as its container. To set the dimensions of the Chart, use inline styles or CSS.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/dimensions/source.txt)

## Customizing the Series Colors

You can customize the series colors of the Chart by using the series item [`color`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/seriesitemcomponent#color) property or the [`seriesColors`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/chartcomponent#seriescolors) configuration setting.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/series-colors/source.txt)

### Using Pattern Fills

In addition to solid colors, the Chart series can also be filled with repeating patterns by using the series item [`pattern`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/seriesitemcomponent#pattern) property.

> The pattern inherits the series [`color`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/seriesitemcomponent#color) as main color and accepts an optional `background` color.

The following customizable pattern fills are available:

* [Crosshatch](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/crosshatchpattern)
* [Diagonal Stripes](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/diagonalstripespattern)
* [Dots](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/dotspattern)
* [Grid](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/gridpattern)
* [Vertical Stripes](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/verticalstripespattern)

The following example demonstrates how to apply a pattern fill to the Chart series.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/patterns/source.txt)

## Customizing with SCSS Theme Variables

To adjust the series colors via SCSS theme variables, refer to the [Customization of the Theme](https://www.telerik.com/design-system/docs/themes/theme-default/customization/) article. You can either set individual series colors or use a map of colors.

Using individual series variables:

```scss
// Applied to Angular styles.scss file.
@use '@progress/kendo-theme-bootstrap/scss/all.scss' as * with (
$kendo-series-a: #e74c3c, // crimson red
$kendo-series-b: #f39c12, // bright orange
$kendo-series-c: #27ae60, // emerald green
$kendo-series-d: #3498db, // bright blue
$kendo-series-e: #9b59b6, // amethyst purple
$kendo-series-f: #e67e22, // carrot orange
);
```

Using the colors map:

```scss
// Applied to Angular styles.scss file.
@use "@progress/kendo-theme-bootstrap/scss/all.scss" as * with (
   $kendo-colors: (
    series-a: #ff6358, // coral
    series-b: #4a90e2, // blue
    series-c: #50c878, // emerald green
    series-d: #ffa500, // orange
    series-e: #9b59b6, // amethyst purple
    series-f: #e74c3c, // crimson red
  )
);
```

The default SCSS color variables are organized into six series, each with different intensity variations. The following colors are for the Kendo Default theme and will vary between different themes and swatches:

| Variable                   | Color Map Key      | Color Code | Color Preview                                                                                                 |
| -------------------------- | ------------------ | ---------- | ------------------------------------------------------------------------------------------------------------- |
| **Coral Series**           |                    |            |                                                                                                               |
| `$kendo-series-a`          | `series-a`         | `#ff6358`  | <span style="background-color:#ff6358;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-a-bold`     | `series-a-bold`    | `#bf4a42`  | <span style="background-color:#bf4a42;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-a-bolder`   | `series-a-bolder`  | `#80322c`  | <span style="background-color:#80322c;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-a-subtle`   | `series-a-subtle`  | `#ffb1ac`  | <span style="background-color:#ffb1ac;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-a-subtler`  | `series-a-subtler` | `#ff8a82`  | <span style="background-color:#ff8a82;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| **Lemon Yellow Series**    |                    |            |                                                                                                               |
| `$kendo-series-b`          | `series-b`         | `#ffe162`  | <span style="background-color:#ffe162;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-b-bold`     | `series-b-bold`    | `#bfa94a`  | <span style="background-color:#bfa94a;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-b-bolder`   | `series-b-bolder`  | `#807131`  | <span style="background-color:#807131;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-b-subtle`   | `series-b-subtle`  | `#fff0b1`  | <span style="background-color:#fff0b1;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-b-subtler`  | `series-b-subtler` | `#ffe989`  | <span style="background-color:#ffe989;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| **Spring Green Series**    |                    |            |                                                                                                               |
| `$kendo-series-c`          | `series-c`         | `#4cd180`  | <span style="background-color:#4cd180;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-c-bold`     | `series-c-bold`    | `#399d60`  | <span style="background-color:#399d60;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-c-bolder`   | `series-c-bolder`  | `#266940`  | <span style="background-color:#266940;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-c-subtle`   | `series-c-subtle`  | `#a6e8c0`  | <span style="background-color:#a6e8c0;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-c-subtler`  | `series-c-subtler` | `#79dda0`  | <span style="background-color:#79dda0;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| **Royal Blue Series**      |                    |            |                                                                                                               |
| `$kendo-series-d`          | `series-d`         | `#4b5ffa`  | <span style="background-color:#4b5ffa;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-d-bold`     | `series-d-bold`    | `#3847bc`  | <span style="background-color:#3847bc;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-d-bolder`   | `series-d-bolder`  | `#26307d`  | <span style="background-color:#26307d;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-d-subtle`   | `series-d-subtle`  | `#a5affd`  | <span style="background-color:#a5affd;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-d-subtler`  | `series-d-subtler` | `#7887fb`  | <span style="background-color:#7887fb;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| **Lavender Purple Series** |                    |            |                                                                                                               |
| `$kendo-series-e`          | `series-e`         | `#ac58ff`  | <span style="background-color:#ac58ff;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-e-bold`     | `series-e-bold`    | `#8142bf`  | <span style="background-color:#8142bf;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-e-bolder`   | `series-e-bolder`  | `#562c80`  | <span style="background-color:#562c80;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-e-subtle`   | `series-e-subtle`  | `#d6acff`  | <span style="background-color:#d6acff;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-e-subtler`  | `series-e-subtler` | `#c182ff`  | <span style="background-color:#c182ff;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| **Flamingo Pink Series**   |                    |            |                                                                                                               |
| `$kendo-series-f`          | `series-f`         | `#ff5892`  | <span style="background-color:#ff5892;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-f-bold`     | `series-f-bold`    | `#bf426e`  | <span style="background-color:#bf426e;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-f-bolder`   | `series-f-bolder`  | `#802c49`  | <span style="background-color:#802c49;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-f-subtle`   | `series-f-subtle`  | `#ffacc9`  | <span style="background-color:#ffacc9;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |
| `$kendo-series-f-subtler`  | `series-f-subtler` | `#ff82ae`  | <span style="background-color:#ff82ae;display:inline-block;width:20px;height:20px;border-radius:3px;"></span> |

## Customizing Animations

The Chart entrance animations are driven by [motion tokens](https://www.telerik.com/design-system/docs/foundation/motion/) defined in the active Kendo UI theme. Override these CSS variables to control the speed and easing of chart animations without changing component code.

The following demo overrides all five motion tokens to produce a bouncy entrance animation.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/motion-css-vars/source.txt)

### Setting Motion Tokens

The Charts package exposes five CSS variables that control animation duration and easing. The following table lists the available tokens:

| CSS Variable              | Type     | Accepted Values               | Description                                                   |
| ------------------------- | -------- | ----------------------------- | ------------------------------------------------------------- |
| `--kendo-duration-rapid`  | Duration | `ms` or `s` (`200ms`, `0.2s`) | Controls the duration of short, quick-feedback animations.    |
| `--kendo-duration-steady` | Duration | `ms` or `s` (`600ms`, `0.6s`) | Controls the duration of longer, more deliberate transitions. |
| `--kendo-easing-linear`   | Easing   | `cubic-bezier(n, n, n, n)`    | Constant-speed motion curve.                                  |
| `--kendo-easing-standard` | Easing   | `cubic-bezier(n, n, n, n)`    | Balanced motion curve for most transitions.                   |
| `--kendo-easing-stretchy` | Easing   | `cubic-bezier(n, n, n, n)`    | Expressive motion curve with an overshoot effect.             |

> Duration values must be greater than `0`. Easing values must use the `cubic-bezier()` function—keyword values such as `linear` or `ease` are not supported.

The Chart reads these tokens from the computed styles of an internal `.k-chart` element appended to `document.body`. Define the variables on `:root`, `body`, or another inherited scope so the values propagate correctly. You can set them with plain CSS or customize them through SCSS as described in the [Motion Customization](https://www.telerik.com/design-system/docs/themes/kendo-themes/meridian/customization/#motion) article.

```CSS
:root {
  --kendo-duration-rapid: 800ms;
  --kendo-duration-steady: 800ms;
  --kendo-easing-linear: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --kendo-easing-standard: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --kendo-easing-stretchy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
```

```SCSS
// Applied in Angular styles.scss file.
@use '@progress/kendo-theme-default/scss/all.scss' as * with (
  $kendo-durations: (
    steady: 1500ms
  ),
  $kendo-easings: (
    stretchy: cubic-bezier(0.07, 1.81, 0.3, 0.81)
  )
);
```

### Updating Motion Tokens at Runtime

To update motion tokens after the Chart has initialized, use Angular's [Renderer2](https://angular.dev/api/core/Renderer2) to set the new CSS variable values on `document.documentElement` and call the [`reloadTheme()`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/chartcomponent#reloadtheme) method. This forces the Chart to re-read all theme variables and replay the entrance animation with the updated timing.

```ts
private document = inject(DOCUMENT);
private renderer = inject(Renderer2);

replay(): void {
    const root = this.document.documentElement;
    this.renderer.setStyle(root, '--kendo-duration-steady', '1500ms', RendererStyleFlags2.DashCase);
    this.renderer.setStyle(root, '--kendo-easing-stretchy', 'cubic-bezier(0.68, -0.55, 0.265, 1.55)', RendererStyleFlags2.DashCase);

    // Re-read the updated tokens and replay the entrance animation.
    this.chart.reloadTheme();
}
```

The following demo showcases different motion profiles and their effect on Chart animations.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/motion-dynamic-change/source.txt)

## Reloading Theme Colors

The Chart will automatically read the relevant [Kendo UI Theme](https://www.telerik.com/kendo-angular-ui-develop/components/styling) variables upon initialization.

To reload the Chart theme, for example, after replacing the theme stylesheet, use the [`reloadTheme`](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api/chartcomponent#reloadtheme) method.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/charts/chart/appearance/reload-theme/source.txt)

## Suggested Links

* [Angular Charts Homepage](https://www.telerik.com/kendo-angular-ui/charts)
* [API Reference of the Angular Charts](https://www.telerik.com/kendo-angular-ui-develop/components/charts/api)
* [Creating Custom Styles with ThemeBuilder](https://www.telerik.com/kendo-angular-ui-develop/components/styling/theme-builder)
