Unplanned
Last Updated: 30 Jul 2025 07:10 by Leonardo
Leonardo
Created on: 30 Jul 2025 07:10
Category: Charts
Type: Feature Request
1
Allow color properties of chart components (labels, series items, etc.) to accept callback functions

When setting the color using a function, a TypeScript error will occur because the property expects a value of type string.

Type '(e: SeriesLabelsContentArgs) => string' is not assignable to type 'string'.

The color properties of the Chart components should support a callback to prevent such errors, as this is a valid feature to implement. The current workaround is to skip type checking.

          <kendo-chart-series-item-labels
            [color]="$any(labelColor)"
          >

0 comments