New to Kendo UI for AngularStart a free 30-day trial

Appearance

The colors of the Angular Chart are derived from the active Kendo UI theme. It is possible to customize them through the theme variables and the 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.

Change Theme
Theme
Loading ...

Customizing the Series Colors

You can customize the series colors of the Chart by using the series item color property or the seriesColors configuration setting.

Change Theme
Theme
Loading ...

Using Pattern Fills

In addition to solid colors, the Chart series can also be filled with repeating patterns by using the series item pattern property.

The pattern inherits the series color as main color and accepts an optional background color.

The following customizable pattern fills are available:

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

Change Theme
Theme
Loading ...

Customizing with SCSS Theme Variables

To adjust the series colors via SCSS theme variables, refer to the Customization of the Theme 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:

VariableColor Map KeyColor CodeColor Preview
Coral Series
$kendo-series-aseries-a#ff6358
$kendo-series-a-boldseries-a-bold#bf4a42
$kendo-series-a-bolderseries-a-bolder#80322c
$kendo-series-a-subtleseries-a-subtle#ffb1ac
$kendo-series-a-subtlerseries-a-subtler#ff8a82
Lemon Yellow Series
$kendo-series-bseries-b#ffe162
$kendo-series-b-boldseries-b-bold#bfa94a
$kendo-series-b-bolderseries-b-bolder#807131
$kendo-series-b-subtleseries-b-subtle#fff0b1
$kendo-series-b-subtlerseries-b-subtler#ffe989
Spring Green Series
$kendo-series-cseries-c#4cd180
$kendo-series-c-boldseries-c-bold#399d60
$kendo-series-c-bolderseries-c-bolder#266940
$kendo-series-c-subtleseries-c-subtle#a6e8c0
$kendo-series-c-subtlerseries-c-subtler#79dda0
Royal Blue Series
$kendo-series-dseries-d#4b5ffa
$kendo-series-d-boldseries-d-bold#3847bc
$kendo-series-d-bolderseries-d-bolder#26307d
$kendo-series-d-subtleseries-d-subtle#a5affd
$kendo-series-d-subtlerseries-d-subtler#7887fb
Lavender Purple Series
$kendo-series-eseries-e#ac58ff
$kendo-series-e-boldseries-e-bold#8142bf
$kendo-series-e-bolderseries-e-bolder#562c80
$kendo-series-e-subtleseries-e-subtle#d6acff
$kendo-series-e-subtlerseries-e-subtler#c182ff
Flamingo Pink Series
$kendo-series-fseries-f#ff5892
$kendo-series-f-boldseries-f-bold#bf426e
$kendo-series-f-bolderseries-f-bolder#802c49
$kendo-series-f-subtleseries-f-subtle#ffacc9
$kendo-series-f-subtlerseries-f-subtler#ff82ae

Reloading Theme Colors

The Chart will automatically read the relevant Kendo UI Theme variables upon initialization.

To reload the Chart theme, for example, after replacing the theme stylesheet, use the reloadTheme method.

Change Theme
Theme
Loading ...