ghost-portal/packages/react-components/src/Chart/utils.ts
2024-01-08 15:06:30 +02:00

9 lines
275 B
TypeScript

// Copyright 2017-2024 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import * as helpers from 'chart.js/helpers';
export function alphaColor (hexColor: string): string {
return helpers.color(hexColor).alpha(0.65).rgbString();
}